t=[0:63]*2*pi/8; x=exp(i*t); clg subplot(211); plot([0:63],real(x)); v=axis; axis([0 64 v(3) v(4)]); title('real part of x'); xlabel('index k'); subplot(212); plot([0:63],imag(x)); v=axis; axis([0 64 v(3) v(4)]); title('imaginary part of x'); xlabel('index k'); print -deps ts0 % note if the program acts strangely, type axis and run again