FUNCTION REFERENCE
fftn
N-dimensional discrete Fourier transform of a real or complex array.
N-dimensional discrete Fourier transform of a real or complex array.
Syntax
Y = fftn(X)Syntax
Y = fftn(X, sz)Transforms along every dimension of X (including N-D arrays). A size vector sz pads with zeros or truncates along each dimension before transforming. A result whose imaginary parts are all zero is real. Real single input gives a single result.
Example
fftn([1 2; 3 4]) % [10 -2; -4 0]Example
size(fftn(ones(2, 2, 2))) % [2 2 2]Differences from MATLAB: Integer input is rejected as in MATLAB; complex single results are not supported yet. 2-D lengths up to 4 reproduce MATLAB's rounding; longer and N-D transforms use successive 1-D calls to MatRust's fft.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.