How to fix an fft?

5 visualizzazioni (ultimi 30 giorni)
love kush Pranu
love kush Pranu il 28 Apr 2021
Risposto: Imran il 4 Gen 2023
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?

Risposte (1)

Imran
Imran il 4 Gen 2023
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.

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by