%% complexexp.m generates a complex exponential signal and plots 
%% its real and imaginary parts.
%% B. Boulet, 2005.

% time vector
t=0:.005:1;
% signal parameters
A=1;
theta=pi/4;
C=A*exp(j*theta);
alpha=-3;
w0=20;
a=alpha+j*w0;
% Generate signal
x=C*exp(a*t);
%plot real and imaginary parts
figure(1)
plot(t,real(x))
figure(2)
plot(t,imag(x))


