www.gusucode.com > signal 案例源码程序 matlab代码 > signal/FIRLatticeFilterExample.m
%% FIR Lattice Filter % Generate a signal with 512 samples of white Gaussian noise. x = randn(512,1); %% % Filter the data with an FIR lattice filter. Specify the reflection % coefficients so that the lattice filter is equivalent to a 3rd-order % moving average filter. [f,g] = latcfilt([1/2 1],x); %% % Plot the maximum- and minimum-phase outputs of the lattice filter in % separate plots subplot(2,1,1) plot(f) title('Maximum-Phase Output') subplot(2,1,2) plot(g) title('Minimum-Phase Output')