%compexp.m produces a 3D plot of a decaying complex exponential, % with subplots of magnitude and phase and of real and imaginary % components below it. t = 0:0.01:5; y=3*exp(-(0.25+j*(2*pi))*t); subplot(3,1,1); plot3(t,real(y),imag(y)); grid xlabel('t'),ylabel('Re(y)'),zlabel('Im(y)'); title('3-D plot of a Complex Exponential'); %produce magnitude and phase plots; t vs |y(t)| and t vs.