% 22.3MB1 Fall 01
% Yvan Petillot
% Time varying vector and its graph

wt=[0:0.1:1.9*pi];

figure(1);clf;

Vx=10*cos(wt);
subplot(3,1,1);
plot(wt,Vx,'-*');
ylabel('V_x');xlabel('\omegat');
grid on;
pause;
Vy=20*cos(wt+pi/3);
subplot(3,1,2);
plot(wt,Vy,'-*');
ylabel('V_y');xlabel('\omegat');
grid on;
pause;
Vz=30*cos(wt-pi/3);
subplot(3,1,3);
plot(wt,Vz,'*');
ylabel('V_z');xlabel('\omegat');
grid on;
pause;
figure(2);clf;
plot3(Vx,Vy,Vz,'-*');
xlabel('x');ylabel('y');zlabel('z');
title('10cos(\omegat) {\bf x} + 20*cos(\omegat+\pi/3) {\bf y} + 30*cos(\omegat-\pi/3) {\bf z}');
grid on;
