If an object is thrown at an angle \theta to the horizontal with speed v then it will travel a horizontal distance

D =(v^2/g)sin2 theta,

and reach a maximum height

h =(v^2/2g)sin^2 theta

where g = 9.81ms^−2 is the gravitational acceleration. for the cases theta = pi/6 and theta = pi/4.

Hand in your answers and MATLAB commands.

this is a matlab peoblem, any idea how to do it? thanks

this is the exercise on the book without answer.