Main Content

winwrite

Class: sigwin.nuttallwin
Namespace: sigwin

Save Nuttall defined four-term Blackman-Harris window object values in ASCII file

Syntax

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

Description

winwrite(H) opens a dialog to export the values of the Nuttall defined four-term Blackman-Harris window object H to an ASCII file. The file extension .wf is automatically appended.

winwrite(H,'filename') saves the values of the Nuttall defined four-term Blackman-Harris 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 two Nuttall-defined four-term Blackman-Harris windows:

  • The first window has N = 64 and is symmetric.

  • The second window has N = 63 and is periodic.

Display the two windows.

Hs = sigwin.nuttallwin(64);
Hp = sigwin.nuttallwin(63);
Hp.SamplingFlag = 'periodic';

wvt = wvtool(Hs,Hp);
legend(wvt.CurrentAxes,'Symmetric','Periodic')

Generate a symmetric Nuttall-defined four-term Blackman-Harris window with N = 16. Return the window values as a column vector. Show information about the window object. Display the window.

H = sigwin.nuttallwin(16);

win = generate(H)
win = 16×1

    0.0004
    0.0048
    0.0306
    0.1105
    0.2778
    0.5292
    0.7983
    0.9755
    0.9755
    0.7983
      ⋮

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

wvtool(H)