Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program in MATLAB 1. (30 Points) The trajectory of a ball thrown by a right fielder as defined in the (x,y) coordinates can

image text in transcribed

write a program in MATLAB

1. (30 Points) The trajectory of a ball thrown by a right fielder as defined in the (x,y) coordinates can be modeled as: o y = x tan 180 e) -6 180 where the angle at which the ball leaves the right fielder's hand is 8, = 25, the initial velocity is v. = 50 mph, 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. You must use g = 9.81 m/s and the following conversion factors: 1 mile = 5280 feet and 1 meter = 3.28 feet. (a) Plot the function using the plot command in figure 1. Title the plot "MAE 284, Homework 3. Problem 1, Parta". Use the axis command to change the axis so that both x and y axes start at 0 and go to 35 meters. (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%) Parabolic interpolation ( X = 10, X = 20,X= 30. Max iterations = 4) MATLAB's Eminbnd with the iterations displayed. Use the range 0 to the distance of the catcher

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago