%Final Exam script for plotting the %Fourier Transform of a signal contained in % the matrix named x Fs = 1000; Y = fft(x,1000); f = Fs/2*linspace(0,1,1000/2); plot(f,2*abs(Y(1:1000/2)))