Question: HW 2 - Q 4 ) MATLAB, PLEASE MAKE CODE COPYABLE The trajectory of a ball thrown by a right fielder as defined in the
HWQ MATLAB, PLEASE MAKE CODE COPYABLE
The trajectory of a ball thrown by a right fielder as defined in the xy coordinates can be modeled as:
where the angle at which the ball leaves the right fielder's hand is the initial velocity is
the distance between the right fielder and the catcher is and the throw leaves
the right fielder's hand at an elevation of You must use and the following
conversion factors: mile feet and meter feet.
a Plot the function using the plot command in figure Title the plot "MAE Homework
Problem Part a Use the axis command to change the axis so that the axis starts at
and goes to meters and the y axis goes from to
b If the catcher cannot reach above an elevation of will she catch the ball? Use
conditional statements and an fprintf to display the result eg "The elevation at
is The catcher CANCANNOT catch the ball"
where either can or cannot is displayed.
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 XXXXXXXXX m Display digits to the right of the decimal
point. You may create functions for goldensection and parabolic interpolation.
i Goldensection search :
ii Parabolic interpolation maxiterations
iii. MATLAB's fminbond with iterations displayed. Use a range of to the distance of the
catcher.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
