%% Taylor Windows
% Generate a Taylor window of length N = 32 with a maximum sidelobe level of 60 dB and two constant-level sidelobes adjacent to the mainlobe. Display the window.

H = sigwin.taylorwin(32,3,60);

wvt = wvtool(H);
ax = wvt.CurrentAxes;
ax.YLim = [-50 50];

%
% Generate a Taylor window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.taylorwin(16);

win = generate(H)
wininfo = info(H)
wvtool(H)

% Copyright 2012 The MathWorks, Inc.