| Contents | Index |
Construct Bartlett-Hanning window object
sigwin.barthannwin creates a handle to a Bartlett-Hanning 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 a modified Bartlett-Hanning window of length N:
![]()
where x is an N-point linearly spaced vector over the interval [1/2, 1/2].
H = sigwin.barthannwin returns a modified Bartlett-Hanning window object H of length 64.
H = sigwin.barthannwin(Length) returns a modified Bartlett-Hanning 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 |
Modified Bartlett-Hanning 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 modified Bartlett-Hanning window |
| info | Display information about modified Bartlett-Hanning window object |
| winwrite | Save Bartlett window object values in ASCII file |
Handle. To learn how copy semantics affect your use of the class, see Copying Objects in the MATLAB Programming Fundamentals documentation.
Default length N=64 modified Bartlett-Hanning window:
H=sigwin.barthannwin; wvtool(H);

Generate length N=128 modified Bartlett-Hanning window, return values, and write ASCII file with window values:
H=sigwin.barthannwin(128); % Return window with generate win=generate(H); % Write ASCII file in current directory % with window values winwrite(H,'barthannwin_128')
Yeong, H.H., and Pearce, J.A. "A New Window and Comparison to Standard Windows," IEEE Transactions on Acoustics, Speech and Signal Processing, Vol. 37, 1989, pp. 298–301.

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 |