Question: what is fftn in matlab?
Answer: Y = fftn( X ) returns the multidimensional Fourier transform of an N-D array using a fast Fourier transform algorithm. The N-D transform is equivalent to computing the 1-D transform along each dimension of X . The output Y is the same size as X .