The function file uses vectorisation of data to compute the DFT of a given sample data 'x'. The DFT is returned as a column vector.
SObhan Chatterjee (2018). DFT (Discrete Fourier Transform) of sampled Data (https://www.mathworks.com/matlabcentral/fileexchange/69589-dft-discrete-fourier-transform-of-sampled-data), MATLAB Central File Exchange. Retrieved .
I agree. Whilst it's faster (more efficient) than DFT calculated using loops, it's slower than fft() or any program using an algorithm for fast fourier transform. This function is to assist those who want an alternative to fft() but want a program faster than those with multiple loops. Hope this makes sense.
why? it computes the same as fft, but less efficient.
Change of name
Minor revision to make it compatible with row data. An earlier version was compatible with only column data.
Create scripts with code, output, and formatted text in a single executable document.