%% Construct an Inverse Sinc Highpass Filter Using fdesign Object
% Design a minimum order inverse sinc highpass filter and shape the stopband to have a slope of 20 dB/radian/sample.

 d = fdesign.isinchp('Fst,Fp,Ast,Ap',.4,.5,40,0.01);
 Hd = design(d,'SystemObject',true);

%
% Shape the stopband to have a linear slope of 20 dB/rad/sample

 Hd1 = design(d,'StopbandShape','linear','StopbandDecay',20,'SystemObject',...
     true);
 fvtool(Hd,Hd1);

%
% Design a 50th order inverse sinc highpass 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(?) = sinc(0.25*(1-?))^(-16) .

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

% Copyright 2012 The MathWorks, Inc.