tukeywin
Tukey (tapered cosine) window
Syntax
w = tukeywin(L,r)
Description
w = tukeywin(L,r)
returns anL
-point Tukey window in the column vector,w
. A Tukey window is a rectangular window with the first and lastr/2
percent of the samples equal to parts of a cosine. SeeAlgorithmsfor the equation that defines the Tukey window.r
is a real number between 0 and 1. If you inputr
≤ 0, you obtain arectwin
window. If you inputr
≥ 1, you obtain ahann
window.r
defaults to 0.5.
Examples
Algorithms
The following equation defines theL-point Tukey window:
wherexis anL-point linearly spaced vector generated usinglinspace
. The parameterris the ratio of cosine-tapered section length to the entire window length with0 ≤r≤ 1. For example, settingr= 0.5produces a Tukey window where 1/2 of the entire window length consists of segments of a phase-shifted cosine with period 2r= 1. If you specifyr≤ 0, anL分返回矩形窗口。如果你规范ifyr≥ 1, anL-point von Hann window is returned.
References
[1] Bloomfield, P. Fourier Analysis of Time Series: An Introduction. New York: Wiley-Interscience, 2000.