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