| Signal Processing Toolbox | ![]() |
Syntax
w = bartlett(n)
Description
w = bartlett(n)
returns an n-point Bartlett window in the column vector w, where n must be a positive integer. The coefficients of a Bartlett window are computed as follows:
n odd
n even
The Bartlett window is very similar to a triangular window as returned by the triang function. The Bartlett window always ends with zeros at samples 1 and n, however, while the triangular window is nonzero at those points. For n odd, the center n-2 points of bartlett(n) are equivalent to triang(n-2).
Example
w = bartlett(64);
plot(w)
title('Bartlett Window')
See Also
|
Compute a Blackman window. |
|
Compute a rectangular window. |
|
Compute a Chebyshev window. |
|
Compute a Hamming window. |
|
Compute a Hann window. |
|
Compute a Kaiser Window. |
|
Compute a triangular window. |
References
[1] Oppenheim, A.V., and R.W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice-Hall, 1989, pp. 447-448.
| aryule | besselap | ![]() |