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

Save flat top window in ASCII file

Syntax

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

Description

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

winwrite(H,'filename') saves the values of the flat top 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 flat top window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.flattopwin(16);

win = generate(H)
win = 

   -0.0004
   -0.0061
   -0.0314
   -0.0677
   -0.0316
    0.1982
    0.6069
    0.9487
    0.9487
    0.6069

wininfo = info(H)
wininfo = 4x26 char array
    'Flat Top Window           '
    '---------------           '
    'Length         : 16       '
    'Sampling Flag  : symmetric'

wvtool(H)

Was this topic helpful?