FFT is not accurate?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a question about FFT. I thought the FFT should converge to the continious fourier transform for a large number of samples. Is that true? Performing an FFT of a rectangular pulse with Matlab leads to a function that resembles a sinc function but is not identical to it, no matter how many samples I use.
Here is how I have implemented it:
k=[0:2048,-2047:-1];
r=[ones(1,64),zeros(1,3969),ones(1,63)];
sitrafo=real(fft(r,4096,2));
sireal=127*sinc(k*127/4096);
figure(1);
plot(k,sitrafo);grid;
hold on;
plot(k,sireal,'g');
Any hints are very much appreciated!
0 commentaires
Réponses (1)
Azzi Abdelmalek
le 28 Juil 2012
i have posted a function get_harmoniques on file exchange, it will appear, maby tomorow, or after the week-end. try it and tell me about it.
1 commentaire
Azzi Abdelmalek
le 30 Juil 2012
Modifié(e) : Azzi Abdelmalek
le 30 Juil 2012
Voir également
Catégories
En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!