www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/DesignAnFIREquirippleFilterExample.m

    %% Design an FIR Equiripple Filter
% Design a minimum order interpolation filter with |l| set to 6, and |alpha|
% set to 0.8. A vector of ripples must be supplied with
% the input argument |minorder|.
b = fireqint('minorder',6,.8,[0.01 .1 .05 .02]);

%%
% Create a polyphase interpolation filter.
hm = dsp.FIRInterpolator(6,'Numerator',b)

%% 
% Here is the zerophase response of the interpolator.
zerophase(hm);