2-D fast Fourier transform - MATLAB fft2 - MathWorks This MATLAB function returns the two-dimensional discrete Fourier transform ( DFT) of X.