Description Usage Arguments Value References
Rearranges outputs from fft to move the zero-frequency component to the center of the matrix. This is useful to visualize a Fourier transform with the zero-frequency component in the center of the image.
1 | fftshift2(x)
|
x |
A matrix returned from |
The transformed matrix
Adapted from GNU Octave's fftshift function (http://octave.sourceforge.net/octave/function/fftshift.html http://hg.savannah.gnu.org/hgweb/octave/file/914c0b103a3d/scripts/signal/fftshift.m#l76)
http://www.mathworks.com/help/matlab/ref/fftshift.html
The waved package (http://cran.r-project.org/web/packages/waved/index.html) has a 1-dimensional fftshift function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.