1 function [lo, hi] = afb(x, af)
6 % [lo, hi] = afb(x, af)
8 % x - N-point vector, where
11 % af - analysis filters
12 % af(:, 1) - lowpass filter (even length)
13 % af(:, 2) - highpass filter (even length)
15 % lo - Low frequecy output
16 % hi - High frequency output
20 % [lo, hi] = afb(x, af);
21 % y = sfb(lo, hi, sf);
25 % WAVELET SOFTWARE AT POLYTECHNIC UNIVERSITY, BROOKLYN, NY
26 % http://taco.poly.edu/WaveletSoftware/
33 lo = upfirdn(x, af(:,1), 1, 2);
34 lo(1:L) = lo(N/2+[1:L]) + lo(1:L);
38 hi = upfirdn(x, af(:,2), 1, 2);
39 hi(1:L) = hi(N/2+[1:L]) + hi(1:L);