When reading a spectrogram, why is a power of 20 considered higher than 120

1 view (last 30 days)
Looking at the spectrogram below, it appears the higher power in the cyan color. but its power value is around 20.
why is this the case? does lower value mean big power?

Answers (1)

Walter Roberson
Walter Roberson on 7 Sep 2022
Those are not 20 and 120: those are -20 and -120 .
  1 Comment
fadams18
fadams18 on 7 Sep 2022
I did a similar plot with a different signal. but my colorbar seems to be inverted. or u reckon its the right way?
[S, feqStft, timeStft] = MyStft(x,win,hop, nfft, fs);
magStft = abs(S);
imagesc(timeStft, feqStft, mag2db(magStft));
colorbar;
set(gca, 'YDir', 'normal');
title('Original Spectrogram of Signal ');
xlabel(['Time (0 - ', num2str(timeStft(end)), ' seconds)']);
ylabel(['Freq (0 - ', num2str(feqStft(end)), ' Hz)']);

Sign in to comment.

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!