spectrogram function: phase and magnitude

조회 수: 11 (최근 30일)
Mona
Mona 2014년 11월 20일
댓글: Mona 2014년 11월 21일
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

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by