www.gusucode.com > signal 案例源码程序 matlab代码 > signal/HighpassFilterTransferFunctionExample.m

    %% Highpass Filter Transfer Function
% Design a 6th-order highpass FIR filter with a passband frequency of 75
% kHz and a passband ripple of 0.2 dB. Specify a sample rate of 200 kHz.
% Compute the coefficients of the equivalent transfer function.

%%

hpFilt = designfilt('highpassiir','FilterOrder',6, ...
         'PassbandFrequency',75e3,'PassbandRipple',0.2, ...
         'SampleRate',200e3);
[b,a] = tf(hpFilt)