Spectrogram

18 次查看(过去 30 天)
Mike
Mike 2011-2-5
I have a simple sine signal (data) with a frequency of 6Hz, lasting 30 seconds. When I perform a spectrogram of data, I should get a time-frequency plot where 6Hz is the solid line, instead I get 0.1Hz, what am I doing wrong?
Do you have a webinar that shows how to perform spectrograms, STFT, etc?
  2 个评论
Liangjun Zhang
Liangjun Zhang 2013-3-3
Hi Mike,
Have you solved this problem? I have the same problem, can you give me some suggestions?
Thank you!
Andrew
Wayne King
Wayne King 2013-3-3
Hi Liangiun, Mike has accepted this answer so it appears the issue is solved for him. If you are having trouble with spectrogram.m, please start a new post and make sure to include whatever code you have.

请先登录,再进行评论。

采纳的回答

Vieniava
Vieniava 2011-2-6
Frequency sampling ( Fs ) - this is all about. You should specify correct Fs - try spectrogram in this usage:
S=spectrogram(x,window,noverlap,nfft,fs)

更多回答(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