Tuesday, January 17, 2017

matlab - breaking the input signal into segments while calculating DFT


Im reading a book about DSP and there is an example about investigating the sound that travel through the ocean. The sound was recorded as the time-domain signal and they tried to analyze it in frequency domain.


The input signal was broke up into 256 point segments. Each of these segments is multiplied by the Hamming window, then run through a 256 point DFT. The resulting frequency spectra are then averaged to form a single 129 point frequency spectrum. Please take a look at the figure


enter image description here


I don't understand:




  1. How they break up the input signal into 256 segments?





  2. How each segment was multiplied with the Hamming window?




  3. How they calculate 256 DFT points?




  4. How the frequency spectra was averaged?






Answer




How they break up the input signal into 256 segments?



This is usually done by a sliding a window of a given width (here 256). Depending on the step-size this results in overlapping (if smaller than 256) or non-overlapping (if equal or larger than 256) data segments.



How each segment was multiplied with the Hamming window?



Usually, by an element-wise multiplication.




How they calculate 256 DFT points?



The number of DFT points is, if I am not mistaken, determined by the length of the input signal.



How the frequency spectra was averaged?



All resulting spectra were summed up and divided by the number of spectra.


No comments:

Post a Comment

periodic trends - Comparing radii in lithium, beryllium, magnesium, aluminium and sodium ions

Apparently the of last four, $\ce{Mg^2+}$ is closest in radius to $\ce{Li+}$. Is this true, and if so, why would a whole larger shell ($\ce{...