www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/DesignFIRDecimatorExample.m
%% Design an FIR Decimator % To design an FIR Decimator using the |designMultirateFIR| function, you % must specify the decimation factor of interest (usually greater than 1) % and an interpolation factor equal to 1. % You can use the default half-polyphase length of 12 and the default % stopband attenuation of 80 dB. Alternately, you can also specify the % half-polyphase length and stopband attenuation values. % Design an FIR decimator with decimation factor set to 3, and % half-polyphase length set to 14. Use the default stopband attenuation % of 80 dB. b = designMultirateFIR(1,3,14); fvtool(b,'impulse');