% fbanlcol.m % usage: Y = fbanlcol(X,l,h,s) % Performs an s-stage DWT transform on the columns of X. (analysis filter bank) % It is assumed that the filters l and h are smaller than #rows(X)/2^s % and that 2^s divides #rows(X) function Y=fbanlcol(X,l,h,s) [m,n] = size(X); Y = X; for r = 0:1:(s-1) mr = m/2^(r); Y(1:mr,:) = hiloanlc(Y(1:mr,:),l,h); end;