% HANNING Hanning window. % Usage: HANNING(N) returns the N-point Hann window as column vector function w = hanning(len) w = .5*(1 - cos(2*pi*(1:len)'/(len+1)));