w = bartlett(L)
The window length .
The Bartlett window is very similar to a triangular window as
returned by the
The Bartlett window always has zeros at the first and last samples,
however, while the triangular window is nonzero at those points. For
L - 2 points of
If you specify a one-point window (set
Create a 64-point Bartlett window. Display the result using
L = 64; bw = bartlett(L); wvtool(bw)
 Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999.
Usage notes and limitations:
Window length must be a constant. Expressions or variables are allowed if their values do not change.