%% Design a Nyquist Filter Using firnyquist
% This example designs a minimum phase factor of a Nyquist filter.

bmin = firnyquist(47,10,.45,'minphase');
b = firnyquist(2*47,10,.45,'nonnegative');
[h,w,s] = freqz(b); hmin = freqz(bmin);
fvtool(b,1,bmin,1);

%
% This example compares filters with different decay rates.

b1 = firnyquist(72,8,.3,0); % Equiripple
b2 = firnyquist(72,8,.3,15);
b3 = firnyquist(72,8,.3,25);
fvtool(b1,1,b2,1,b3,1);

% Copyright 2012 The MathWorks, Inc.