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

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

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

H = sigwin.hamming(16);

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

% Copyright 2012 The MathWorks, Inc.