y = fft(x);% Compute DFT of x m = abs(y);% Magnitude y(m