Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Toolbox   

tukeywin - Tukey (tapered cosine) window

Syntax

w = tukeywin(L,r)

Description

w = tukeywin(L,r) returns an L-point, Tukey window in column vector w. Tukey windows are cosine-tapered windows. r is the ratio of taper to constant sections and is between 0 and 1. is a rectwin window and is a hann window. The default value for r is 0.5.

Examples

Compute 128-point Tukey windows with five different tapers and display the results using WVTool:

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

Plot comparing Tukey windows with five different tapers.

Algorithm

The equation for computing the coefficients of a Tukey window is

The window length is .

References

[1] Harris, F. J. "On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform." Proceedings of the IEEE. Vol. 66 (January 1978). pp. 66-67.

See Also

chebwin, gausswin, kaiser, window, wintool, wvtool

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS