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

    %% Phase Delay Response of an Elliptic Filter
% Design an elliptic filter of order 10 and normalized passband frequency
% 0.4. Specify a passband ripple of 0.5 dB and a stopband attenuation of 20
% dB. Display the phase delay response of the filter over the complete unit
% circle.

% Copyright 2015 The MathWorks, Inc.


%%

[b,a] = ellip(10,0.5,20,0.4); 
phasedelay(b,a,512,'whole')

%%
% Repeat the example using |designfilt|.

d = designfilt('lowpassiir','DesignMethod','ellip','FilterOrder',10, ...
               'PassbandFrequency',0.4, ...
               'PassbandRipple',0.5,'StopbandAttenuation',20);
phasedelay(d,512,'whole')