Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202541

Difference between the Matlab and LabVIEW Hann (Hanning) functions

$
0
0

Hi All,

 

I'm hoping someone out there can satisfy my curiosity. I have been porting over some code from Matlab to LabVIEW and came accross a difference in the two implementations of the Hann function. Essentially:

 

LabVIEW has array length = n

http://zone.ni.com/reference/en-XX/help/371361J-01/lvanls/hanning_window/

 

Matlab has array length -1 = N.

http://www.mathworks.co.uk/help/signal/ref/hann.html

 

(where n= N in the two implementations)

 

As I'm not very clued up on signal processing I was hoping someone could explain why there is a difference in implementation and why array length was chosen for the LabVIEW implementation. According to wolfram the parameter a is full width at half maximum:

 

http://mathworld.wolfram.com/HanningFunction.html

http://mathworld.wolfram.com/FullWidthatHalfMaximum.html

 

Is the difference just due to the interpretation of what this value should be?

 

I've attached a modified version of the window comparison example to illustrate the diference.

 

Thanks,


Viewing all articles
Browse latest Browse all 202541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>