Signal Processing Toolbox |
Syntax
Description
w = tukeywin(n,r)
returns an n
-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:
N=128; t0=tukeywin(N,0); %Equivalent to rectangular window t25=tukeywin(N,0.25); t5=tukeywin(N); %r=0.5 t75=tukeywin(N,0.75); t1=tukeywin(N,1); %Equivalent to Hann window wvtool(t0,t25,t5,t75,t1)
Algorithm
The equation for computing the coefficients of a Tukey window is
See Also
chebwin
, gausswin
, kaiser
, window
, wintool
, wvtool
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.
tripuls | udecode |
© 1994-2005 The MathWorks, Inc.