spectrogram function: phase and magnitude

17 Ansichten (letzte 30 Tage)
Mona
Mona am 20 Nov. 2014
Kommentiert: Mona am 21 Nov. 2014
Hi,
I read the Spectrogram function and I sort of understand it, but I have a question. As stated in the definition, the Spectrogram returns the Short-time Fourier Transform of the input signal. When I take a STFT, I must get two components: magnitude and phase. I assume that the magnitude vector is what we get from the Spectrogram, but what about the phase? Please help!!!!
Thanks

Akzeptierte Antwort

Rick Rosson
Rick Rosson am 21 Nov. 2014
The spectrogram function returns complex numbers, which include both magnitude and phase information.
[S,F,T] = spectrogram(...);
A = abs(S);
phi = angle(S);

Weitere Antworten (0)

Kategorien

Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by