Different between plot after STFT and that using the surf function in Matlab

Can you help me understand the difference between the spectogram formed after using the stft function in matlab and that formed after assigning the stft to a variable and then plotting the same with surf function
ex
difference between plots achieved after
[SV,FV,TV]=stft(y,fs,'Window',win,'OverlapLength',5120,'FFTLength',fs,'FrequencyRange','onesided');
surf(TV,FV,20*log10(abs(SV)));
and that using
stft(y,fs,'Window',win,'OverlapLength',5120,'FFTLength',fs,'FrequencyRange','onesided');

 採用された回答

Voss
Voss 2021 年 12 月 4 日

0 投票

One surface is of SV and one is of 20*log10(abs(SV)). Does that explain the difference you observe?

その他の回答 (0 件)

タグ

質問済み:

2021 年 12 月 4 日

回答済み:

2021 年 12 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by