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.

winwrite

Class: sigwin.chebwin
Package: 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. Write the coefficients to an ASCII file in the current directory. Show information about the window object. Display the window.

H = sigwin.chebwin(16,40);

win = generate(H)
win = 

    0.1138
    0.1964
    0.3319
    0.4926
    0.6613
    0.8163
    0.9353
    1.0000
    1.0000
    0.9353

winwrite(H,'chebwin_16_40');
wininfo = info(H)
wininfo = 4×26 char array
    'Chebyshev Window          '
    '----------------          '
    'Length                : 16'
    'Sidelobe Attenuation  : 40'
wvtool(H)

Was this topic helpful?