How to fix an fft?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (1)
Imran
el 4 de En. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!