fftshift
Shift the zero-frequency component to the center of the spectrum.
📝Syntax
Y = fftshift(X)
Y = fftshift(X, DIM)
📥Input Arguments
Parameter Description
X a vector, matrix or N-D array (double, single, integer).
DIM axes over which to shift.
📤Output Arguments
Parameter Description
Y shifted array.
📄Description

fftshift(X) shift the zero-frequency component to the center of the spectrum.

💡Examples
M = [ 0.,  10.,  20.; 30.,  40., -40.; -30., -20., -10.]
fftshift(M)
fftshift(M, 1)
🔗See Also
fftifftshift
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub