Pages

Monday, December 13, 2010

MATLAB PROGRAM FOR DISPLAYING A COMPLEX EXPONENTIAL WAVE

%exponential wave
t=0:0.1:10;
s=0.1+1i;%complex number
y=exp(s*t);%expression for complex exponential
stem3(real(y),imag(y),t,'r');
%to show the 3d graph
%'r'indicates the colour-red
view(-39.5,42);%azimuth and elevation
xlabel('real');
ylabel('imag');
zlabel('amplitude');
title('complex exponential');
rotate3d;%to rotate in 3-dimensions
legend('complex exponential');
 
OUTPUT WAVEFORM 

No comments:

Post a Comment