I am getting different values of fft for the same variable as demonstrated by a simple example below...
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Paul
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!