Skip to content

fftn

N-dimensional Fast Fourier Transform.

Y = fftn(X)
Y = fftn(X, siz)

Returns the N-dimensional DFT of X. With siz (a vector of sizes), pads/truncates X to that shape first. Generalizes fft and fft2 to arbitrary dimensions.

Y = fftn(rand(4,4,4))
  • fft — 1D Fast Fourier Transform.
  • fft2 — 2D Fast Fourier Transform.