%% Nuttall-Defined Four-Term Blackman-Harris Windows
% 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)
wininfo = info(H)
wvtool(H)

% Copyright 2012 The MathWorks, Inc.