ifftshift | R Documentation |
Rearranges a zero-frequency-shifted Fourier transform back to the original.
ifftshift(x, MARGIN = 2)
x |
input data, specified as a vector or matrix. |
MARGIN |
dimension to operate along, 1 = row, 2 = columns (default).
Specifying |
Undo the action of the fftshift function. For even length x
,
fftshift
is its own inverse, but not for odd length input.
back-transformed vector or matrix.
Vincent Cautaerts, vincent@comf5.comm.eng.osaka-u.ac.jp,
adapted by John W. Eaton.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
fftshift
Xeven <- 1:6
res <- fftshift(fftshift(Xeven))
Xodd <- 1:7
res <- fftshift(fftshift(Xodd))
res <- ifftshift(fftshift(Xodd))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.