fftshift {SynchWave}R Documentation

FFT Shift

Description

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

Usage

fftshift(x)

Arguments

x

a vector

Details

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

Value

shifted vector

See Also

ifftshift.

Examples

x <- 1:4
fftshift(fftshift(x))
ifftshift(fftshift(x))

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

[Package SynchWave version 1.1.2 Index]