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

    %% Phase Response of an Elliptic Filter
% Design an elliptic lowpass IIR filter with normalized passband frequency
% $0.4\pi$ rad/s, normalized stopband frequency $0.5\pi$ rad/s, passband
% ripple 1 dB, and stopband attenuation 60 dB. Display the phase response
% of the filter.

% Copyright 2015 The MathWorks, Inc.


%%

d = designfilt('lowpassiir', ...
               'PassbandFrequency',0.4,'StopbandFrequency',0.5, ...
               'PassbandRipple',1,'StopbandAttenuation',60, ...
               'DesignMethod','ellip');
phasez(d)