What is the unit of the result of spectrogram?
16 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Gautam Mohan
2016-10-18
Hi Jeong,
The spectrogram units are power/frequency, as it computes the power spectral density.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time-Frequency Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!