%% Design a Single-Rate Equiripple Filter
% Design a single-rate equiripple filter from a halfband filter
% specification object. Notice the help command used to learn about the
% options for the specification object and method.

d = fdesign.halfband('tw,ast',0.1,80);
designmethods(d,'Systemobject',true)

%

help(d,'equiripple')

%

designopts(d,'equiripple')

%

equiFilt = design(d,'equiripple','stopbandshape','flat','SystemObject',true);
fvtool(equiFilt);

% The fvtool shows the equiripple nature of the filter.
% Copyright 2012 The MathWorks, Inc.