f=dft(f); f=dft(f,N,dim);
dft computes a normalized or unitary discrete Fourier transform. The unitary discrete Fourier transform is computed by
for \(k=0,\ldots,L-1\).
The output of dft is a scaled version of the output from fft. The function takes exactly the same arguments as fft. See the help on fft for a thorough description.