In MATLAB
2. (40 Points) The trajectory of a toy missile in (x.y) coordinates can be modeled as: yo + tan(00)s-2 (to cos(00)) y where, a, is the initial angle of the missile in radians, v,-25 m/s is the initial velocity, the horizontal distance the missile flies is 105m. The initial elevation of the missile is 1.5m and it hits a practice target at 2m above the ground. The missile will be launched on Mars where the acceleration due to gravity is 3.771 m/s2 a. Plot the function of t, for 10. a, 80.. Be sure to label the axes. Note that x label ( ' \theta ' ) will produce a on the x axis. The x axis should be in degrees. Use the fprintf function to print out the answer to the question: "How many solutions exist?" Compute an approximation for the appropriate initial angle(s) 0% at which the missile can take off and still hit the target 2m above the ground. If there is more than one solution, be sure to b. c. find them all. d. Use the fprintf function to print out a table like the one shown below. Add a row for each zero of the function. Zero Bisect Fzero e. Plot the solutions on the plot of the function of 0 in the plot from part a. Use an asterisk for the bisect solution and a circle for the fzero solution. If there is more than one solution, use a different color for the asterisk (and circle) for each solution. Be sure to include a legend in the lower left corner. Plot the trajectory of the toy missile in (x,y) coordinates for both of the solutions obtained using the fzero function. Put both plots in a single new figure (but not subplot) f. 2. (40 Points) The trajectory of a toy missile in (x.y) coordinates can be modeled as: yo + tan(00)s-2 (to cos(00)) y where, a, is the initial angle of the missile in radians, v,-25 m/s is the initial velocity, the horizontal distance the missile flies is 105m. The initial elevation of the missile is 1.5m and it hits a practice target at 2m above the ground. The missile will be launched on Mars where the acceleration due to gravity is 3.771 m/s2 a. Plot the function of t, for 10. a, 80.. Be sure to label the axes. Note that x label ( ' \theta ' ) will produce a on the x axis. The x axis should be in degrees. Use the fprintf function to print out the answer to the question: "How many solutions exist?" Compute an approximation for the appropriate initial angle(s) 0% at which the missile can take off and still hit the target 2m above the ground. If there is more than one solution, be sure to b. c. find them all. d. Use the fprintf function to print out a table like the one shown below. Add a row for each zero of the function. Zero Bisect Fzero e. Plot the solutions on the plot of the function of 0 in the plot from part a. Use an asterisk for the bisect solution and a circle for the fzero solution. If there is more than one solution, use a different color for the asterisk (and circle) for each solution. Be sure to include a legend in the lower left corner. Plot the trajectory of the toy missile in (x,y) coordinates for both of the solutions obtained using the fzero function. Put both plots in a single new figure (but not subplot) f