Main Content

generate

Class: sigwin.blackman
Namespace: sigwin

Generates Blackman window

Syntax

win = generate(H)

Description

win = generate(H) returns the values of the Blackman window object H as a double-precision column vector.

Examples

expand all

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

H = sigwin.blackman(16);

win = generate(H)
win = 16×1

         0
    0.0168
    0.0771
    0.2008
    0.3940
    0.6300
    0.8492
    0.9822
    0.9822
    0.8492
    0.6300
    0.3940
    0.2008
    0.0771
    0.0168
      ⋮

wininfo = info(H)
wininfo = 4×26 char array
    'Blackman Window           '
    '---------------           '
    'Length         : 16       '
    'Sampling Flag  : symmetric'

wvtool(H)

Figure Window Visualization Tool contains 2 axes objects and other objects of type uimenu, uitoolbar, uipanel. Axes object 1 with title Time domain, xlabel Samples, ylabel Amplitude contains an object of type line. Axes object 2 with title Frequency domain, xlabel Normalized Frequency (\times\pi rad/sample), ylabel Magnitude (dB) contains an object of type line.

See Also

|