Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Physical meaning of ifftshift?

  1. Oct 17, 2011 #1
    I am using ifftshift function in matlab, mathematically it does the following functions

    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. jcsd
  3. Oct 17, 2011 #2

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    The ifftshift function undoes the effect of fftshift function.

    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.
     
  4. Oct 17, 2011 #3
    Okay it is just to arrange frequencies. Thank you.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Physical meaning of ifftshift?
Loading...