%% Filter Design with fircls1
% Design an order 55 lowpass filter with normalized cutoff frequency 0.3. Specify a passband ripple of 0.02 and a stopband ripple of 0.008. Display plots of the bands.

n = 55;
wo = 0.3;
dp = 0.02;
ds = 0.008;
b = fircls1(n,wo,dp,ds,'both');

%
% The Bound Violations denote the iterations of the procedure as the design converges. Display the magnitude response of the filter.

fvtool(b)

% Copyright 2015 The MathWorks, Inc.