Main Content

winwrite

Class: sigwin.barthannwin
Namespace: sigwin

Save modified Bartlett-Hann 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 modified Bartlett-Hann window object H to an ASCII file with file name extension wf.

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

H = sigwin.barthannwin(16);

win = generate(H)
win = 16×1

         0
    0.0649
    0.1897
    0.3586
    0.5477
    0.7300
    0.8794
    0.9757
    0.9757
    0.8794
      ⋮

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

wvtool(H)