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

6 views (last 30 days)
Manav Giri
Manav Giri on 4 Dec 2021
Answered: Benjamin on 4 Dec 2021
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');

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!