hi.i want to plot fourier transform of this:
my code is this:
clcclear allt=-5:0.01:5;y=exp(-0.5*abs(t));Fs=1;X=fft(y);f=(-length(X)/2:length(X)/2-1)*(Fs/length(X))subplot(211);plot(t,y);subplot(212);plot(f,fftshift(abs(X)));
but it donot.
the wrong result is this:
Best Answer