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

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

%%

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

%%
% The only available method is the FIR window method. Design the filter and
% display its magnitude response.
Hd = design(d);

fvtool(Hd)