Question on Discrete Cosine Transform FFT
Show older comments
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 Comments
Bruno Luong
on 20 Oct 2018
Edited: Bruno Luong
on 20 Oct 2018
Uh yes. But this seems to be DFT (from FFT) not cosine transform
Matlab Student
on 20 Oct 2018
Bruno Luong
on 20 Oct 2018
Why mention "Discrete Cosine Transform" in the subject? DCT is not DFT.
Matlab Student
on 20 Oct 2018
Matlab Student
on 20 Oct 2018
Bruno Luong
on 20 Oct 2018
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
on 20 Oct 2018
Answers (0)
Categories
Find more on Discrete Fourier and Cosine Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

