N-D fast Fourier transform

`Y = fftn(X)`

Y = fftn(X,siz)

`Y = fftn(X)`

returns the
discrete Fourier transform (DFT) of `X`

, computed
with a multidimensional fast Fourier transform (FFT) algorithm. The
result `Y`

is the same size as `X`

.

`Y = fftn(X,siz)`

pads `X`

with
zeros, or truncates `X`

, to create a multidimensional
array of size `siz`

before performing the transform.
The size of the result `Y`

is `siz`

.

`fftn`

supports inputs of data types `double`

and `single`

.
If you call `fftn`

with the syntax ```
y =
fftn(X, ...)
```

, the output `y`

has the same
data type as the input `X`

.

Was this topic helpful?