Main Content

winwrite

Class: sigwin.bartlett
Namespace: sigwin

Save Bartlett window object values in ASCII file

Syntax

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

Description

winwrite(H) opens a dialog box that enables you to export the values of the Bartlett window object H to an ASCII file with filename extension wf.

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

Examples

expand all

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

H = sigwin.bartlett(16);

win = generate(H)
win = 16×1

         0
    0.1333
    0.2667
    0.4000
    0.5333
    0.6667
    0.8000
    0.9333
    0.9333
    0.8000
      ⋮

wininfo = info(H)
wininfo = 3x15 char array
    'Bartlett Window'
    '---------------'
    'Length  : 16   '

wvtool(H)

See Also

| |