Question: Please use Matlab R2019a code to write a step by step solution program to the following question. This is all the information that was given
Please use Matlab R2019a code to write a step by step solution program to the following question. This is all the information that was given

1. (30 Points) The trajectory of a ball thrown by a right fielder as defined in the (x,y) coordinates can be modeled as: where the angle at which the ball leaves the right fielder's hand is @ = 25, the initial velocity is v. = 21.5 m/s, the distance between the right fielder and the catcher is 35 m, and the throw leaves the right fielder's hand at an elevation of 1.6 m. Use g = 9.81 m/s2 (a) Plot the function using fplot in figure 1. Title the plot MAE 284, Homework 3, Problem 1, Part a". (b) If the catcher cannot reach above an elevation of 2 m. will she catch the ball? Use an fprintf statement to display the result (e.g. "The catcher can/cannot catch the ball"). (c) Compute the maximum height reached by the ball using each of the following methods. Use the fprintf function to print the result. For example, "The maximum height using goldmin is 19.0214618608 m". Be sure to include the same number of digits to the right of the decimal point. i. Golden-section search (x = 0, x, = 40, e, = 1%) ii. Parabolic interpolation ( x1 = 10, x2 = 20, xz = 30, Max iterations = 4) iii. MATLAB's fminbnd with the iterations displayed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
