function w = hanning(n)
% HANNING   Calculates Hanning window.
%   HANNING Calculates and returns an N point
%   Hanning window.

w = .5*(1 - cos(2*pi*(1:n)'/(n+1))); 

