%% Tukey Windows
% Compute 128-point Tukey windows with five different values of r, or "tapers." Display the results using wvtool.

L = 128;
t0 = tukeywin(L,0);        % Equivalent to a rectangular window
t25 = tukeywin(L,0.25);
t5 = tukeywin(L);          % r = 0.5
t75 = tukeywin(L,0.75);
t1 = tukeywin(L,1);        % Equivalent to a Hann window
wvtool(t0,t25,t5,t75,t1)

% Copyright 2015 The MathWorks, Inc.