Implementing the DFT in MATLAB