compare matlab fft2 and FFTW result

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

probably fliplr(conj(S1(:, 2:end)) but you will need to adjust that slightly if N is even
that's good to know. thank you,

Sign in to comment.

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Products

Release

R2020b

Tags

Asked:

on 13 Aug 2023

Commented:

on 15 Aug 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!