clear
acceleration_x = 0; %m/s^2
acceleration_y = -9.8; %m/s^2
velocity_initial = 100; %m/s
velocity_initial_angle = 75;%degrees
v0_x = velocity_initial * cos(velocity_initial_angle*pi/180);
v0_y = velocity_initial * sin(velocity_initial_angle*pi/180);
time_max = 2*v0_y/(-acceleration_y); %sec
time_step = 1;
t = [0:time_step:time_max];
x = zeros(length(t));
y = zeros(length(t));

for ii=1:length(t)
    x(ii)=v0_x*t(ii)+1/2*acceleration_x*(t(ii))^2;
    y(ii)=v0_y*t(ii)+1/2*acceleration_y*(t(ii))^2;
end

plot(x,y,'m.')%plots graph, to change color of dots, 
              %try 'b.' (blue) , 'm.'(magenta), 'c.' (cyan), 'k.' black, etc.
axis equal 
hold on
