Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

sigwin.bohmanwin class

Package: sigwin

Construct Bohman window object

Description

Note

The use of sigwin.bohmanwin is not recommended. Use bohmanwin instead.

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:

w(x)=(1|x|)cos(π|x|)+1πsin(π|x|),1x1

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.

Construction

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.

Properties

Length

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.

Methods

generateGenerates Bohman window
infoDisplay information about Bohman window object
winwriteSave Bohman window object values in ASCII file

Copy Semantics

Handle. To learn how copy semantics affect your use of the class, see Copying Objects (MATLAB) in the MATLAB® Programming Fundamentals documentation.

Examples

expand all

Generate a Bohman window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.bohmanwin(16);

win = generate(H)
win = 

         0
    0.0077
    0.0581
    0.1791
    0.3723
    0.6090
    0.8343
    0.9791
    0.9791
    0.8343

wininfo = info(H)
wininfo = 3x13 char array
    'Bohman Window'
    '-------------'
    'Length  : 16 '

wvtool(H)

References

harris, fredric j. “On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform.” Proceedings of the IEEE®. Vol. 66, January 1978, pp. 51–83.

Was this topic helpful?