%% Design a Nyquist Filter Using Kaiser Window
% This example designs a filter using the two design techniques of specifying a function handle and passing a window vector as an input argument.
% Use a window vector provided by the kaiser window function to design a Nyquist filter. The window length must be the filter order plus one.

d = fdesign.nyquist(5,'n',150);
% Kaiser window with beta parameter 2.5
nyqFilter = window(d,'window',kaiser(151,2.5),'SystemObject',true);
fvtool(nyqFilter)

% Copyright 2012 The MathWorks, Inc.