Main Content

winwrite

Class: sigwin.triang
Namespace: sigwin

Save triangular window in ASCII file

Syntax

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

Description

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

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

Examples

expand all

Generate a triangular window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.triang(16);

win = generate(H)
win = 16×1

    0.0625
    0.1875
    0.3125
    0.4375
    0.5625
    0.6875
    0.8125
    0.9375
    0.9375
    0.8125
      ⋮

wininfo = info(H)
wininfo = 3x17 char array
    'Triangular Window'
    '-----------------'
    'Length  : 16     '

wvtool(H)