%% Hann Windows
% Generate two Hann 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.hann(64,'symmetric');
Hp = sigwin.hann(63,'periodic')

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

%
% Generate a symmetric Hann window with N = 16. Return the window values as a column vector. Show information about the window object. Display the window.

H = sigwin.hann(16);

win = generate(H)
wininfo = info(H)
wvtool(H)

% Copyright 2012 The MathWorks, Inc.