Engee documentation

ifftshift

Page in progress.

Reverse zero frequency shift.

Library

EngeeDSP

Syntax

Function call

  • X = ifftshift(Y) — returns the Fourier transform of the input array Y, shifted by zero frequency, to the original conversion result. In other words, the function ifftshift cancels the result of the function fftshift.

    • If Y — vector, then function ifftshift swaps the left and right halves Y.

    • If Y — the matrix, then the function ifftshift swaps the first quadrant Y with the third, and the second quadrant with the fourth.

    • If Y — a multidimensional array, then the function ifftshift swaps half spaces Y for each dimension.

  • X = ifftshift(Y,dim) — works by dimension dim array Y. For example, if Y — a matrix whose rows represent several one-dimensional transformations, then ifftshift(Y,2) swaps the halves of each row of the matrix Y.

Arguments

Input arguments

# Y — input array

+ vector | matrix | multidimensional array

Details

An input array specified as a vector, matrix, or multidimensional array.

Data types

Float64, Float32, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Support for complex numbers

Yes

# dim — the measurement by which the operation is performed

+ positive integer scalar

Details

The dimension on which the operation is performed is specified as a positive integer. If the value is not specified, then the function ifftshift swaps all dimensions.

  • Consider the input matrix Yc. Operation ifftshift(Yc,1) swaps the halves of each column of the matrix Yc.

    ifftshift 1

  • Consider the matrix Yr. Operation ifftshift(Yr,2) swaps the halves of each row of the matrix Yr.

    ifftshift 2

Data types

Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

Output arguments

# X — output array

Details

The output array returned as a vector, matrix, or multidimensional array.