- #1

- 54

- 0

If M is a row matrix:

M = 1 2 3 4 5 6 7 8;

then ifftshift(M) = 5 6 7 8 1 2 3 4, i.e. it replaces first half with the second half. Although how can be explain this function physically?

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter vivek.iitd
- Start date

- #1

- 54

- 0

If M is a row matrix:

M = 1 2 3 4 5 6 7 8;

then ifftshift(M) = 5 6 7 8 1 2 3 4, i.e. it replaces first half with the second half. Although how can be explain this function physically?

- #2

AlephZero

Science Advisor

Homework Helper

- 7,002

- 293

The purpose of fftshift is to put the zero frequency in the center of the frequency spectrum from an FFT, rather than at the left hand end. In other words, you want to interpret the FFT as covering a frequency range from -f/2 to +f/2, not from 0 to f.

None of this has much "phyiscal" significance, but it's useful for producing plots in the form you want to see them.

- #3

- 54

- 0

Okay it is just to arrange frequencies. Thank you.

Share: