% Graphs of four typical windows:
% Hamming,Gaussian,Blackman,Hanning.

tc=-0.5:0.001:0.5;
b=0;
tg=-4:0.01:4;

ge=0.54+0.46.*cos(2.*pi.*tc);
gg=exp(-18.*tc.^2);
gc=cos(pi.*tc).^2;
gb=0.42+0.5.*cos(2.*pi.*tc)+0.08.*cos(4.*pi.*tc);

subplot(221);
plot(tc,ge,'b');
axis([-0.5 0.5 0 1]);
title('Hamming')
grid;%axis('off')

subplot(222);
plot(tc,gg,'b');
axis([-0.5 0.5 0 1]);
title('Gaussian');
grid;%axis('off')

subplot(224);
plot(tc,gc,'b');
axis([-0.5 0.5 0 1]);
title('Blackman'); grid;%axis('off')

subplot(223);
plot(tc,gb,'b');
axis([-0.5 0.5 0 1]);
title('Hanning');
grid;%axis('off')



% "Complex and Chaotic Nonlinear Dynamics. 
% Advances in Economics and Finance, 
% Mathematics and Statistics" 
% T.Vialar, Springer 2009.
% Copyright(c).