IFFT inverted domain zones

I'm trying to perform IFFT on data but it returns values "switched" in respect to the domain I'm using. As you can see in the image attached I'm trying to obtain something like the blue line but the IFFT returns me the red line (so the first half of the data should be the second half and vice versa). Is there an easy way to solve this issue?
I have the same problem with fft2 too.

2 Comments

perhaps you need fftshift(),
That's right the function I was looking for. Thanks!

Sign in to comment.

Answers (0)

Categories

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

Tags

Asked:

on 17 May 2021

Commented:

on 17 May 2021

Community Treasure Hunt

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

Start Hunting!