# fftshift

Version:

Computes the FFT shift spectrum.

## Syntax

c = fftshift(a)
c = fftshift(a, b)

## a

Vector or array of any dimension.

## b

Dimension for swapping. b is an integer. If you do not specify b, the function swaps each dimension sequentially.

## c

Shifted version of a. If a is a vector, fftshift(a) swaps the left and right parts of a. If a is a matrix, c = fftshift(a) swaps quadrants 1 and 3 and quadrants 2 and 4. . If a is a vector, c = fftshift(a) swaps each dimension sequentially. c is a vector or array of any dimension.

A = [1, 2, 3, 4; 4, 3, 2, 1]
C = fftshift(A)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices