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

    %% Window Method Lowpass Design
% Create a filter of order 10 with a 6-dB frequency of 9.6 kHz and a
% sampling frequency of 48 kHz. Look at the available design methods.

%%

d = fdesign.lowpass('N,Fc',10,9600,48000);
designmethods(d)

%%
% The only valid design method is the FIR window method. Design the filter.

Hd = design(d);

%%
% Display the filter magnitude response. The -6 dB point is at 9.6 kHz, as
% expected.

fvtool(Hd)