Main Content

winwrite

Class: sigwin.chebwin
Namespace: sigwin

Save Dolph-Chebyshev window object values in ASCII file

Syntax

winwrite(H)
winwrite(H,'filename')

Description

winwrite(H) opens a dialog to export the values of the Dolph-Chebyshev window object H to an ASCII file. The file extension .wf is automatically appended.

winwrite(H,'filename') saves the values of the Dolph-Chebyshev window object H in the current folder as a column vector in the ASCII file 'filename'. The file extension .wf is automatically appended to filename.

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)