% Usage: x = invfullwave(c, levels, filt). 
% Recursive application of invwave1.m, Inverts fullwave.m, 
% of course.
function x = invfullwave(c,levels,filt)

N=length(c);

m = 2*N/2^levels;
x = c;
for j=1:levels
    x(1:m) = invwave1(x(1:m),filt);
    m = 2*m;
end
    