MATLAB Answers

MATLAB stft vs spectrogram

조회 수: 23(최근 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!


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