%% Construct an Inverse Sinc Lowpass Filter Using fdesign Object
% Pass the specifications for the default specification - 'Fp,Fst,Ap,Ast', as input arguments to the specifications object.

d = fdesign.isinclp(.4,.5,.01,40);
hd = design(d,'equiripple','SystemObject',true);
fvtool(hd);

%
% Design a 50th order inverse sinc lowpass filter. Set the sinc frequency factor to 0.25 and the sinc power to 16 to achieve a magnitude response in the passband of the form H(w) = sinc(0.25*w)^(-16) .

 d = fdesign.isinclp('N,Fp,Fst',50,.4,.5);
 Hd = design(d,'SincFrequencyFactor',0.25,'SincPower',16,'SystemObject',...
     true);
 fvtool(Hd, 'MagnitudeDisplay', 'Magnitude');

% Copyright 2012 The MathWorks, Inc.