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');

 Réponse acceptée

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

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by