How to interpret FFT output, Spectrogram and calculate Spectral centroid
9 views (last 30 days)
Show older comments
Hi how do i interpret the FFT output, spectrogram (the figures below) and how do I calculate the spectral centroid ? The way i calculate spectral centroid is using summation(amplitude * frequency) / summation(frequency) Thanks in advance
0 Comments
Accepted Answer
Star Strider
on 28 Sep 2016
Plotting your fft as a loglog plot would help you interpret it. You have a large d-c (constant) offset to your signal, and unless you eliminate that by subtracting the mean of your signal before you take the fft, only a loglog plot will let you see the details.
You can calculate the Spectral centroid relatively easily now that you have correctly calculated and plotted your fft.
The spectrogram is difficult to interpret. The only reasonable interpretation is that your signal has completely different frequency content at different times. There does not appear to be any pattern in it with respect to time.
2 Comments
Star Strider
on 28 Sep 2016
My use of ‘d-c offset’ is an electrical engineering term. It refers to the direct-current component of an otherwise oscillating signal. In practice, it is simply the mean of any signal.
You assume correctly. The definition of ‘spectral centroid’ you’re using is the same as the Wikipedia definition.
No worries with the questions! I’ve taken several signal processing courses over the years (not covering all the same information, since some involved wavelets, neural networks, hardware implementations of filters, and other techniques), and I know from my experience it takes time to learn them. If it was possible to learn signal processing overnight, there would not be year-long courses in it! Take your time, and understand it.
More Answers (0)
See Also
Categories
Find more on Time-Frequency Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!