spectrogram function: phase and magnitude

28 ビュー (過去 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);
  1 件のコメント
Mona
Mona 2014 年 11 月 21 日
Thank you very much Rick :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by