Function Reference
— Loadable Function: fft (a, n, dim)

Compute the FFT of a using subroutines from Fftw. The FFT is calculated along the first non-singleton dimension of the array. Thus if a is a matrix, fft (a) computes the FFT for each column of a.

If called with two arguments, n is expected to be an integer specifying the number of elements of a to use, or an empty matrix to specify that its value should be ignored. If n is larger than the dimension along which the FFT is calculated, then a is resized and padded with zeros. Otherwise, if n is smaller than the dimension along which the FFT is calculated, then a is truncated.

If called with three arguments, dim is an integer specifying the dimension of the matrix along which the FFT is performed

See also: ifft fft2 fftn fftw