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

    %% Wideband highpass design using an interpolation factor of 6
% This example shows how to use |ifir| to design a wideband highpass filter.

% Copyright 2015 The MathWorks, Inc.

[h,g,d]=ifir(6,'high',[.12 .14],[.001 .01]);
H = dfilt.dffir(h); G = dfilt.dffir(g);
Hb1 = cascade(H,G); % Branch 1
Hb2 = dfilt.dffir(d); % Branch 2
Hoverall = parallel(Hb1,Hb2); % Overall wideband highpass
hfv =  fvtool(Hoverall);
legend(hfv,'Overall Filter');