Y =
fftshift(X) rearranges the outputs of fft, fft2, and fftn by moving
the zero-frequency component to the center of the array. It is
useful for visualizing a Fourier transform with the zero-frequency
component in the middle of the spectrum. For vectors, fftshift(X)
swaps the left and right halves of X.