%% Tukey Windows
% Generate two Tukey windows of length N = 64:
% The first window has α = 1/4. α is the ratio of tapered window section length to constant section length.
% The second window has α = 3/4.
% Display the two windows.

H14 = sigwin.tukeywin(64,1/4);
H34 = sigwin.tukeywin(64,3/4);

wvt = wvtool(H14,H34);
legend(wvt.CurrentAxes,'\alpha = 1/4','\alpha = 3/4')

%
% Generate a Tukey window with length N = 16 and the default α = 1/2. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.tukeywin(16);

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

% Copyright 2012 The MathWorks, Inc.