Main Content

generate

Class: sigwin.chebwin
Namespace: sigwin

Generates Dolph-Chebyshev window

Syntax

win = generate(H)

Description

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

Examples

expand all

Generate a Dolph-Chebyshev window of length N = 16. Specify a relative sidelobe attenuation of 40 dB. Return the window values as a column vector. Show information about the window object. Display the window.

H = sigwin.chebwin(16,40);

win = generate(H)
win = 16×1

    0.1138
    0.1964
    0.3319
    0.4926
    0.6613
    0.8163
    0.9353
    1.0000
    1.0000
    0.9353
      ⋮

wininfo = info(H)
wininfo = 4x26 char array
    'Chebyshev Window          '
    '----------------          '
    'Length                : 16'
    'Sidelobe Attenuation  : 40'

wvtool(H)