compare matlab fft2 and FFTW result
Show older comments
For an real 2d input matrix I with dimension (M, N), fft2(I) will produce a complex specturm S (M, N). However, FFTW only generate a subset of the specturm S1 (M, (N/2+1)). How should I fill up the remaining of the FFTW spectrum to get the same specturm as matlab fft2?
2 Comments
Walter Roberson
on 13 Aug 2023
probably fliplr(conj(S1(:, 2:end)) but you will need to adjust that slightly if N is even
JUn Tang
on 15 Aug 2023
Answers (0)
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!