%case 1:
t=0:1:20;
H1 = 100*cos(pi/2)*t;
V1 = 100*sin(pi/2)*t - 0.5*9.81*t.^2;
%display the table of results for students to see
table = [H1', V1']

%case 2:
t=0:1:20;
H2 = 100*cos(pi/4)*t;
V2 = 100*sin(pi/4)*t - 0.5*9.81*t.^2;
%display the table of results for students to see
table = [H2', V2']

%case 3:
t=0:1:20;
H3 = 100*cos(pi/6)*t;
V3 = 100*sin(pi/6)*t - 0.5*9.81*t.^2;
%display the table of results for students to see
table = [H3', V3']

%plot the trajectories
plot(H1,V1,'k-',H2,V2,'b--',H3,V3,'r:')

%put axis labels
xlabel('horizontal distance')
ylabel('vertical distance')

%give your graph a title
title('Graph of Projectile Motion')

%put a legend
legend('angle pi/2','angle pi/4','angle pi/6')

