Hanning window of MATLAB


by truva
Tags: hanning, matlab, window
truva
truva is offline
#1
Feb22-12, 09:57 PM
P: 18
Hi all

As far as I know Hanning window is defined as the following:
.5+.5*cos(2*pi*n/N) and n is between [-(N-1)/2,(N-1)/2] here N is odd number.

MATLAB functions "hanning" with symetric or periodic options or "hann" do not match with the results of the above formula. There is always a slight annoying difference !

Do you know the problem?

(Same thing for Hamming window)
Phys.Org News Partner Engineering news on Phys.org
Lifting the brakes on fuel efficiency
PsiKick's batteryless sensors poised for coming 'Internet of things'
Researcher launches successful tech start-up to help the blind
Pythagorean
Pythagorean is offline
#2
Feb22-12, 11:50 PM
PF Gold
Pythagorean's Avatar
P: 4,195
I used both in my DSP course without a problem. Maybe this will help:

http://www.mathworks.com/help/toolbo.../ref/hann.html
truva
truva is offline
#3
Feb23-12, 11:27 AM
P: 18
As I understand the book is wrong (Notes On Digital Signal Processing by C. Britton Rorabaugh). If I replace the N by (N-1) in the denumerator of the formulation which is 5+.5*cos(2*pi*n/(N-1)), the results coincide exactly with that of MATLAB.

Thank you for the link.


Register to reply

Related Discussions
hanning window in comsol acoustics module for FEM ultrasonic wave propagation Mechanical Engineering 0
MATLAB: Window Heat Transfer problem Engineering, Comp Sci, & Technology Homework 0
Window material General Engineering 8
Fan by the Window Introductory Physics Homework 3
Drops on a window General Physics 2