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.kaiser
Package: sigwin

Save Kaiser window in ASCII file

Syntax

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

Description

winwrite(H) opens a dialog to export the Kaiser window values to an ASCII file. The file extension .wf is automatically appended.

winwrite(H,'filename') saves the values of the Kaiser 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 two Kaiser windows of length N = 64:

  • The first window has an attenuation parameter β = 5.

  • The second window has β = 15.

Display the two windows.

H05 = sigwin.kaiser(128,5);
H15 = sigwin.kaiser(128,15);

wvt = wvtool(H05,H15);
legend(wvt.CurrentAxes,'\beta = 5','\beta = 15')

Generate a Kaiser window with length N = 16 and the default β = 1/2. Return its 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.kaiser(16);

win = generate(H)
win = 

    0.9403
    0.9550
    0.9677
    0.9783
    0.9868
    0.9933
    0.9976
    0.9997
    0.9997
    0.9976

winwrite(H,'kaiser_16');
wininfo = info(H)
wininfo = 4×13 char array
    'Kaiser Window'
    '-------------'
    'Length  : 16 '
    'Beta    : 0.5'
wvtool(H)

See Also

| |

Was this topic helpful?