spectrogram function: phase and magnitude
11 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Time-Frequency Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!