Construct Bohman window object
sigwin.bohmanwin creates a handle to a Bohman 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 Bohman window of length N:
where x is a length N vector of linearly spaced values generated using linspace. The first and last elements of the Bohman window are forced to be identically zero.
H = sigwin.bohmanwin returns a Bohman window object H of length 64.
H = sigwin.bohmanwin(Length) returns a Bohman window object H of length Length. Length is 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.
Bohman window length. Must be 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 Bohman window|
|info||Display information about Bohman window object|
|winwrite||Save Bohman 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 Bohman window:
Generate length N=128 Bohman window, return values, and write ASCII file:
H=sigwin.bohmanwin(128); % Return window with generate win=generate(H); % Write ASCII file in current directory % with window values winwrite(H,'bohmanwin_128')
Harris, F.J. "On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform."Proceedings of the IEEE®.Vol. 66, 1978, pp. 51–83.