fftshift: FFT Shift

View source: R/sst.R

fftshiftR 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))

SynchWave documentation built on May 7, 2022, 5:05 p.m.