%% Phase Response of an Equiripple Filter
% Design a lowpass equiripple filter with normalized passband frequency 0.45\pi rad/s, normalized stopband frequency 0.55\pi rad/s, passband ripple 1 dB, and stopband attenuation 60 dB. Display the phase response of the filter.

d = designfilt('lowpassfir', ...
               'PassbandFrequency',0.45,'StopbandFrequency',0.55, ...
               'PassbandRipple',1,'StopbandAttenuation',60, ...
               'DesignMethod','equiripple');
phasez(d)

% Copyright 2015 The MathWorks, Inc.