I am getting different values of fft for the same variable as demonstrated by a simple example below...
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
E=[1 2 4 6;3 6 3 9;7 5 8 9]
EF=fftshift(abs(fft(E)))
ES=fftshift(abs(fft(E(:,1))))
shouldn't ES be equal to the first row of EF...
0 commentaires
Réponses (1)
Paul
le 11 Mai 2024
I think you were expecting ES be equal to the first column of EF.
If desired for fftshift to work along a specific dimension of the input, then that dimension needs to be specified
E=[1 2 4 6;3 6 3 9;7 5 8 9];
EF=fftshift(abs(fft(E)),1) % specify the dimension
ES=fftshift(abs(fft(E(:,1))))
0 commentaires
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!