I am getting different values of fft for the same variable as demonstrated by a simple example below...
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Paul
2024-5-11
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!