Question on Discrete Cosine Transform FFT

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 comentarios

Bruno Luong
Bruno Luong el 20 de Oct. de 2018
Editada: Bruno Luong el 20 de Oct. de 2018
Uh yes. But this seems to be DFT (from FFT) not cosine transform
Matlab Student
Matlab Student el 20 de Oct. de 2018
Yea, I have used fft:
horFourier = fft(hProfile); plot(horFourier);
Bruno Luong
Bruno Luong el 20 de Oct. de 2018
Why mention "Discrete Cosine Transform" in the subject? DCT is not DFT.
Matlab Student
Matlab Student el 20 de Oct. de 2018
What should I do to have a periodic DFT signal?
This is the image vector
and this is the results after DFT is applied.
Matlab Student
Matlab Student el 20 de Oct. de 2018
In my case, I did not get the same. What should I do?
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 el 20 de Oct. de 2018
Thank you Bruno, that was really helpful. Also thanks for the documents you have advised.

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 20 de Oct. de 2018

Comentada:

el 20 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by