How to fix an fft?

5 次查看(过去 30 天)
love kush Pranu
love kush Pranu 2021-4-28
回答: Imran 2023-1-4
So basically we have to apply the fft function on a given compound wave but the values it is outputiong are slightly off. How do we change this to give a more accurate fourier transform?

回答(1 个)

Imran
Imran 2023-1-4
Hello Love,
I understand that you are applying the 'fft' function on a given compound wave, but the output is not accurate.
The reason behind such inaccurate output is that frequency components of your compound signal are not matching exactly with the discrete frequency array, defined for computing ‘fft’. The 'fft' function matches your signal by finding components close to your signal, i.e., it decomposes the signal in cosines and sines that it is allowed to sum over.
If you want to have them exactly in your transformed signal or if you want more accurate output, you must change the sampling points of the 'fft' accordingly. If you are computing n-point DFT, make sure that 'n' is an integral multiple of the number of recorded data points. That is how you can have exact peaks at your predefined frequencies.
I hope this helps.

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by