MATLAB stft vs spectrogram

49 次查看(过去 30 天)
Mario Lorenzo
Mario Lorenzo 2021-7-28
回答: Chunru 2021-7-28
am very new to signal processing, and thus I am currently learning the basic functionalities of signal processing toolbox on MATLAB. I found these two functions named stft and spectrogram. I don't understand the differences between these two and which one should I use at what occasions. Appreciate if anyone can explain to me about this topic.
Thanks in advance!

回答(1 个)

Chunru
Chunru 2021-7-28
stft focuses on the FT of windowed and segmented (overlaped) data and the output can be used to reconstruct the original (under certain condition).
spectrogram focuses on the spectral estimation based on STFT. It has the options for power spectrum or power spectrum density. It has the option of 'reassigned' to sharpen spectrogram.

Community Treasure Hunt

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

Start Hunting!

Translated by