What is the unit of the result of spectrogram?

9 views (last 30 days)
Hi, all. I want to ask about the unit of the result of spectrogram function.
The code I use is below:
--------------------------------------------------------
window=hann(2048);
[s,f,t] = spectrogram(y_total,window,1024,2048,2000);
% y_total is the mV data with 2kHz smapling rate.
s = abs(s);
sum_of_power = s(1,:) + s(2,:) + s(3,:) + s(4,:);
---------------------------------------------------------
I'm using the spectrogram function to know the changes of powers in specific frequency range. The result is good, but the problem is that I don't know the unit of the value 's'. Someone told me that the unit might be the 'Hz/mV^2', or others told me that 's' is the normalized value, so there is no unit.
Is there anyone who can tell about the unit of the result?
Thank you.

Answers (1)

Gautam Mohan
Gautam Mohan on 18 Oct 2016
Hi Jeong,
The spectrogram units are power/frequency, as it computes the power spectral density.

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!