Owning Class: transforms
Requires: MathScript RT Module
c = fftshift(a)
c = fftshift(a, b)
Computes the FFT shift spectrum.
| Name | Description | ||||
|---|---|---|---|---|---|
| a | Specifies a vector or matrix. | ||||
| b | Specifies whether to perform swapping in the first or second dimension of a signal. b is an integer that accepts the following values.
|
| Name | Description |
|---|---|
| c | Returns a 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. c is a vector or matrix. |
A = [1, 2, 3, 4; 4, 3, 2, 1]
C = fftshift(A)