Main Content

winwrite

Class: sigwin.bohmanwin
Namespace: sigwin

Save Bohman window object values in ASCII file

Syntax

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

Description

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

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

H = sigwin.bohmanwin(16);

win = generate(H)
win = 16×1

         0
    0.0077
    0.0581
    0.1791
    0.3723
    0.6090
    0.8343
    0.9791
    0.9791
    0.8343
      ⋮

wininfo = info(H)
wininfo = 3x13 char array
    'Bohman Window'
    '-------------'
    'Length  : 16 '

wvtool(H)