www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/NarrowbandLowpassDesignUsingAnInterpolationFactorOf6Example.m
%% Narrowband lowpass design using an interpolation factor of 6 % This example shows how to use the function |ifir| to design a narrowband % lowpass filter. % Copyright 2015 The MathWorks, Inc. [h,g]=ifir(6,'low',[.12 .14],[.01 .001]); H = dfilt.dffir(h); G = dfilt.dffir(g); hfv = fvtool(H,G); legend(hfv,'Periodic Filter','Image Suppressor Filter'); Hcas = cascade(H,G); hfv2 = fvtool(Hcas); legend(hfv2,'Overall Filter');