MATLAB stft vs spectrogram

52 views (last 30 days)
Mario Lorenzo
Mario Lorenzo on 28 Jul 2021
Answered: Chunru on 28 Jul 2021
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!

Answers (1)

Chunru
Chunru on 28 Jul 2021
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.

Categories

Find more on Time-Frequency Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!