Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

bartlett

Bartlett window

Syntax

w = bartlett(L)

Description

w = bartlett(L) returns an L-point Bartlett window in the column vector w, where L must be a positive integer. The coefficients of a Bartlett window are computed as follows:

w(n)={2nN,0nN222nN,N2nN

The window length L=N+1.

The Bartlett window is very similar to a triangular window as returned by the triang function. The Bartlett window always has zeros at the first and last samples, however, while the triangular window is nonzero at those points. For L odd, the center L - 2 points of bartlett(L) are equivalent to triang(L-2).

    Note   If you specify a one-point window (set L = 1), the value 1 is returned.

Examples

collapse all

Create a 64-point Bartlett window. Display the result using wvtool.

L = 64;
bw = bartlett(L);
wvtool(bw)

References

[1] Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999.

Introduced before R2006a

Was this topic helpful?