ifft
The inverse fast Fourier transform.
| Library |
|
Syntax
Function call
-
X = ifft(Y)— calculates the opposite discrete Fourier transform forYusing the fast Fourier transform algorithm. ArgumentXhas the same size asY.-
If
Y— vector, thenifft(Y)returns the inverse transformation of the vector. -
If
Y— the matrix, thenifft(Y)returns the inverse transformation of each column of the matrix. -
If
Y— a multidimensional array, thenifft(Y)considers values in the first dimension whose size is not equal to1, as vectors, and returns the inverse transformation of each vector.
-
Arguments
Input arguments
# Y — input array
+
vector | the matrix | multidimensional array
Details
An input array specified as a vector, matrix, or multidimensional array. If Y has a type Float32, then the function ifft calculated with single precision, and X It also has a type Float32. Otherwise X returned as a type Float64.
| Data types |
|
| Support for complex numbers |
Yes |
# n is the length of the inverse transformation
+
[] (by default) | a non-negative integer scalar
Details
The length of the inverse transformation is given as [] or a non-negative integer. Addition Y zeros by specifying a conversion length greater than the length Y, can improve the performance of the function ifft. The length is usually specified as a power of two or the product of small primes. If n less than the length of the signal, then the function ifft ignores the remaining signal values after n-th element and returns a truncated result. If n equally 0, then the function ifft returns an empty matrix.
| Data types |
|
# dim — the measurement for which the operation is performed
+
a positive integer scalar
Details
The dimension that the operation is performed on is set as a positive integer. By default dim — the first dimension of the array, the size of which is not equal to 1. For example, consider the matrix Y.
-
ifft(Y,[],1)returns the inverse Fourier transform for each column. -
ifft(Y,[],2)returns the inverse Fourier transform for each row.
| Data types |
|
# symflag — type of symmetry
+
"nonsymmetric" (default) | "symmetric"
Details
The type of symmetry defined as "nonsymmetric" or "symmetric". If the argumentative Y it is not exactly conjugate-symmetric due to rounding error., ifft(Y,"symmetric") interprets Y as conjugate-symmetric, ignoring the second half of its elements (located in the negative frequency spectrum). For more information about conjugate symmetry, see Algorithms.
Output arguments
# X — output array
Details
The output array returned as a vector, matrix, or multidimensional array.
Algorithms
-
Function
ifftchecks whether the vectors inYconjugate-symmetric. If the vectors are inYIf they are conjugately symmetric, then the calculation of the inverse transformation is faster, and the output signal is real.Function is conjugate symmetric if . However, the fast Fourier transform of the time domain signal has half of the spectrum in positive frequencies and the other half in negative frequencies, with the first element reserved for the zero frequency. For this reason, the vector
vis conjugate symmetric whenv(2:end)equallyconj(v(end:-1:2)).