Signal Processing Toolbox    
bartlett

Compute a Bartlett window.

Syntax

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:

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

See Also
blackman
Compute a Blackman window.
boxcar
Compute a rectangular window.
chebwin
Compute a Chebyshev window.
hamming
Compute a Hamming window.
hann
Compute a Hann window.
kaiser
Compute a Kaiser Window.
triang
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