Question: Please do the question in MATLAB and show your code clearly The trajectory of an object can be modeled as y=(tan0)x2v02(cos0)2gx2+y0, where y= height (m),0=
Please do the question in MATLAB and show your code clearly
The trajectory of an object can be modeled as y=(tan0)x2v02(cos0)2gx2+y0, where y= height (m),0= initial angle (radians), x= horizontal distance (m),g= gravitational acceleration (=9.81m/s2),v0= initial velocity (m/s), and y0= initial height. Use MATLAB to find the trajectories for y0=0 and v0=28m/s for initial angles ranging from 15 to 75 in increments of 15. Employ a range of horizontal distances from x=0 to 80m in increments of 5m. The results should be assembled in an array where the first dimension (rows) corresponds to the distances, and the second dimension (columns) corresponds to the different initial angles. Use this matrix to generate a single plot of the heights versus horizontal distances for each of the initial angles. Employ a legend to distinguish among the different cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
