yading@10: x4=[2 1 0 0 0 0 0 1 ]; yading@10: X4=fft(x4,8); yading@10: ejex=linspace(0,1,8); yading@10: plot(ejex,abs(X4),'*');