Followings are the code that I wrote in Octave to creates all the plots shown in this page. You may copy these code and play with these codes. Change variables and try yourself until you get your own intuitive understanding.
< Code 1 >
tstep = pi/20;
t=0:tstep:2*pi;
k=1;
d=0;
e3 = exp(k*t*j)*exp(j*d);
mp = 41;
hFig = figure(1,'Position',[300 300 700 500]);
plot(real(e3),imag(e3),'k-');
hold on;
plot(real(e3),imag(e3),'bo','MarkerFaceColor',[0 0 1]);
axis([-1.1 1.1 -1.1 1.1]);
xlabel('real : e^{j t}');
ylabel('imaginary : e^{j t}');
plot(real(e3(mp)),imag(e3(mp)),'ro',"markerfacecolor",[1 0 0],'MarkerSize',12);
daspect([1 1]);
quiver([0],[0],[real(e3(mp))],[imag(e3(mp))],"color","red","maxheadsize", 0.1);
%quiver([0],[imag(e3(mp))],[real(e3(mp))*1.1],[0],"color","red","maxheadsize", 0.1);
line([-1.2 1.2],[0 0],'color','black');
line([0 0],[-1.2 1.2],'color','black');
hold off;
box off;
axis off;
|