Learn R Programming

SynchWave (version 1.1.2)

fftshift: FFT Shift

Description

This function exchanges the left halves of a vector with the right halves.

Usage

fftshift(x)

Arguments

x

a vector

Value

shifted vector

Details

This function exchanges the left halves of a vector with the right halves. This function is adapted from Matlab.

See Also

ifftshift.

Examples

Run this code
# NOT RUN {
x <- 1:4
fftshift(fftshift(x))
ifftshift(fftshift(x))

x <- 1:5
fftshift(fftshift(x))
ifftshift(fftshift(x))
# }

Run the code above in your browser using DataLab