Question on Discrete Cosine Transform FFT

1 次查看(过去 30 天)
Hello Team,
My Matlab code calculate a vector signal. When I plot the signal, it looks like the attached signal1.
After I apply fft, the signal becomes like signal2. It does look correct. Am I right?
Thanks
  7 个评论
Bruno Luong
Bruno Luong 2018-10-20
It seems the graph is
abs(fft(data))
because fft returns complex data when when you plot it without ABS, you get the points in complex plane, and not amplitude vs frequency.
Take a look at the documents of functions PLOT, FFT, FFTSHIFT
Matlab Student
Matlab Student 2018-10-20
Thank you Bruno, that was really helpful. Also thanks for the documents you have advised.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by