fftn
N-Dimensions fast Fourier transform.
📝Syntax
Y = fftn(X)
Y = fftn(X, sz)
📥Input Arguments
Parameter Description
X a vector, matrix or N-D array (double, single, integer, logical).
sz a multidimensional array
📤Output Arguments
Parameter Description
Y a vector, matrix, N-D array: frequency domain representation.
📄Description

Y = fftn(X, sz) pads X with zeros, or truncates X, to create a multidimensional array of size sz before performing the transform.

The size of the result Y is sz.

Y = fftn(X) performs the N-dimensional fast Fourier transform.

The result Y is the same size as X.

💡Examples
f = zeros(5, 5);
f(1:5,4:5) = 1;
Y = ifftn(fftn(f));
🔗See Also
ifftnfft
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub