%% Equiripple Lowpass Filter
% Design a 31-tap linear-phase lowpass filter. Display its magnitude and phase responses.

b = cfirpm(30,[-1 -0.5 -0.4 0.7 0.8 1],@lowpass);
fvtool(b,1,'OverlayedAnalysis','phase')

% Copyright 2015 The MathWorks, Inc.