FFT on a stored waveform

2 次查看(过去 30 天)
Alzapoa
Alzapoa 2012-2-19
编辑: Arso 2013-10-20
Hi everybody,
I have a time domain semi sinusoidal waveform stored in excell file in numerical format. Coul you please tell me how can I do FFT on that?
Regards,

采纳的回答

Image Analyst
Image Analyst 2012-2-19
The xlsread() and fft() functions immediately spring to mind. Did you try them?
  3 个评论
Wayne King
Wayne King 2012-2-20
If xdft is the output of fft, then plot(abs(xdft)). The reason that plot(xdft) doesn't look right is because the output of fft() is in general complex-valued (as it should be).
Image Analyst
Image Analyst 2012-2-22
If the plot of the spectrum doesn't look like a line plot, what's it supposed to look like? You can use bar() if you want - would that be better? Of course you have to take either the real, imaginary, or magnitude like Wayne said. You might also want to plot the log of the amplitude if your signal looks just like one giant sharp spike, like it should for a mostly sinusoidal signal.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Measurements and Feature Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by