| Contents | Index |
Construct rectangular window object
sigwin.rectwin creates a handle to a rectangular window object for use in spectral analysis and FIR filtering by the window method. Object methods enable workspace import and ASCII file export of the window values.
The following equation defines the rectangular window of length N:
![]()
H = sigwin.rectwin returns a rectangular window object H of length 64.
H = sigwin.rectwin(Length) returns a rectangular window object H of length Length. Length requires a positive integer. Entering a positive noninteger value for Length rounds the length to the nearest integer. Entering a 1 for Length results in a window with a single value of 1.
Length |
Rectangular window length. The window length requires a positive integer. Entering a positive noninteger value for Length rounds the length to the nearest integer. Entering a 1 for Length results in a window with a single value of 1. |
| generate | Generates rectangular window |
| info | Display information about rectangular window object |
| winwrite | Save rectangular window in ASCII file |
Handle. To learn how copy semantics affect your use of the class, see Copying Objects in the MATLAB Programming Fundamentals documentation.
Create default length N=64 rectangular window:
H=sigwin.rectwin; wvtool(H);

Generate length N=128 rectangular window, return values, and write ASCII file:
H=sigwin.rectwin(128); % Return window with generate win=generate(H); % Write ascii file in current directory % with window values winwrite(H,'rectwin_128')
Oppenheim, A.V., and Schafer, R.W. Discrete-time Signal Processing, Upper Saddle River, N.J: Prentice Hall, 1989, pp. 444–447.

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |