Documentation

rectwin

Rectangular window

Syntax

w = rectwin(L)

Description

w = rectwin(L) returns a rectangular window of length L in the column vector w. This function is provided for completeness; a rectangular window is equivalent to no window at all.

Examples

collapse all

Rectangular Window

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

L = 64;
wvtool(rectwin(L))

More About

collapse all

Algorithms

w = ones(L,1);

References

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

Introduced before R2006a

Was this topic helpful?