Bartlett window
w = bartlett(L)
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\left(n\right)=\{\begin{array}{ll}\frac{2n}{N},\hfill & 0\le n\le \frac{N}{2}\hfill \\ 2-\frac{2n}{N},\hfill & \frac{N}{2}\le n\le N\hfill \end{array}$$
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 |
[1] Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999.
barthannwin
| blackmanharris
| bohmanwin
| nuttallwin
| parzenwin
| rectwin
| triang
| window
| wvtool