%% complexDTexp.m generates a discrete-time 
%% complex exponential signal and plots 
%% its real and imaginary parts.
% time vector
n=0:1:20;
% signal parameters
A=1;
theta=pi/4;
C=A*exp(j*theta);
r=0.8;
w0=0.2*pi;
a=r*exp(j*w0);
% Generate signal
x=C*(a.^n);
%plot real and imaginary parts
figure(1)
stem(n,real(x))
figure(2)
stem(n,imag(x))


