What is Stft spectrogram?
s = spectrogram( x ) returns the Short-Time Fourier Transform (STFT) of the input signal x . Each column of s contains an estimate of the short-term, time-localized frequency content of x . The magnitude squared of s is known as the spectrogram time-frequency representation of x [1].
What is the difference between Spectrum and spectrogram?
A spectrogram gives a running display of a sound signal as it occurs in real time; a spectrum, on the other hand, gives us a snapshot of the sound at a specific point in time. A spectrum can enable you to see, for example, the energy distribution over the different frequencies of a single vowel, like [i].