1 function w = dwt(x, J, af)
3 % Discrete 1-D Wavelet Transform
8 % x - N-point vector, where
9 % 1) N is divisible by 2^J
10 % 2) N >= 2^(J-1)*length(af)
11 % J - number of stages
12 % af - analysis filters
13 % af(:, 1) - lowpass filter (even length)
14 % af(:, 2) - highpass filter (evenlength)
16 % w{j}, j = 1..J+1 - DWT coefficients
25 % WAVELET SOFTWARE AT POLYTECHNIC UNIVERSITY, BROOKLYN, NY
26 % http://taco.poly.edu/WaveletSoftware/
29 [x w{k}] = afb(x, af);