%% Linf-norm scaling of a filter
% This example shows how to check the Linf-norm scaling of a filter.
% Design an elliptic sos filter in the direct form II structure with default specifications.

EllipII = design(fdesign.lowpass, 'ellip', 'FilterStructure', 'df2sos',...
    'SystemObject',true);

%
% Check the scaling.

scalecheck(EllipII,'Linf')

%
% Design an elliptic sos filter in the direct form I structure with default specifications.

EllipI = design(fdesign.lowpass('N,Fp,Ap,Ast',10,0.5,0.5,20), 'ellip',...
    'FilterStructure', 'df1sos','SystemObject',true);

%
% Check the scaling.

scalecheck(EllipI,'Linf')

% Copyright 2012 The MathWorks, Inc.