function w=hann(n)
%HANN HANN(N) returns the N-point Hanning window in a row vector.

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