%% Gaussian Windows
% Generate two Gaussian windows of length N = 64. Specify α values of 4 and 2. Show information about the window objects. Display the windows.

H4 = sigwin.gausswin(64,4);
H2 = sigwin.gausswin(64,2);

wvt = wvtool(H4,H2);
legend(wvt.CurrentAxes,'\alpha=4','\alpha=2')

%
% The window with α = 4 has a wider mainlobe and less sidelobe energy.
% Generate a Gaussian window with N = 16 and α = 3. Return the window values as a column vector. Show information about the window object. Display the window.

H = sigwin.gausswin(16,3);

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

% Copyright 2012 The MathWorks, Inc.