Question

2.The height h(t) and horizontal distance x(t) traveled by a ball thrown at an angle 0with a speed v are given by x(t)=v t \cos \theta[\mathrm{m}] h(t)=v t \sin \theta-\frac{g

t^{2}}{2}[\mathrm{~m}] At Earth's surface the acceleration due to gravity is g = 9.81 m/s2. 1. Suppose the ball is thrown with a velocity v = 10 m/s at an angle of 35°. Use MATLAB to compute how high the ball will go, how far it will go, and how long it will take to hit the ground. 2. Use the values of v and 0 given in part 1 to plot the ball's trajectory; 3. that is, plot h versus x for positive values of h. 4. In new figure, top subplot, graph the trajectories for v = 10 m/s correspondingto five values of the angle 0: 20°, 30°, 45°, 60°, and 70°. 5. In new figure, bottom subplot, produce the trajectories for 0 = 45°correspondingto five values of the initial velocity v: 10, 12, 14, 16, and 18 m/s.

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6Question image 7Question image 8Question image 9