Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started