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!