(m)
¶(m, r)
¶Return the filter coefficients of a Tukey window (also known as the cosine-tapered window) of length m. r defines the ratio between the constant section and and the cosine section. It has to be between 0 and 1. The function returns a Hanning window for r equal to 1 and a rectangular window for r equal to 0. The default value of r is 1/2.
For a definition of the Tukey window, see e.g. Fredric J. Harris, "On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform, Proceedings of the IEEE", Vol. 66, No. 1, January 1978, Page 67, Equation 38.
See also: hanning.
The following code
m = 100; r = 1/3; w = tukeywin (m, r); title(sprintf("%d-point Tukey window, R = %d/%d", m, [p, q] = rat(r), q)); plot(w);
Produces the following figure
Figure 1 |
---|
Package: signal