I am getting different values of fft for the same variable as demonstrated by a simple example below...
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Paul
el 11 de Mayo de 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 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!