% Complex exponential visualization demo

% Generate the complex exponential
t = 0:.01:20;
ce = exp(j*t);


% Plot the complex exponential
h = plot3(t,real(ce),imag(ce),'k-');
set(h,'LineWidth',3);
grid on; rotate3d on;
xlabel('Time'); zlabel('Imaginary'); ylabel('Real');
campos([72.0755  -14.2764    7.5928]);

% Plot the projections onto the "back planes"
hold on;
plot3(t,real(ce),-1*ones(size(t)),'r--')
plot3(t,ones(size(t)),imag(ce),'g--')
plot3(zeros(size(t)),real(ce),imag(ce),'b--')
hold off;
