Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.000 ft B This problem is a modification of G6C4-EOC15. 10,000 ft A person at point A spots a child in trouble at point B

image text in transcribed

3.000 ft B This problem is a modification of G6C4-EOC15. 10,000 ft A person at point A spots a child in trouble at point B CX- across the river. In order to reach the child in the shortest time the person runs to point C and then swims to point B, as shown. Write a MATLAB program that performs the following tasks. 1. Requests user to enter a row vector containing the running speed in ft/s as the first element and swimming speed in ft/s as the second element 2. Determines the minimum time required to reach the child 3. Displays to the CW the minimum time in an easily read format including UNITS! 4. Displays to the CW the distance run corresponding to the minimum transit time including UNITS! To determine the minimum transit time - initialize a vector of distance run ranging from 0 - 10,000 - compute the total transit time for each of the distances run - use MATLAB's built-in function min to determine the minimum total transit time and the corresponding distance run Recommendation - Start with only a few elements in your vector. After your program seems to be working correctly, increase the number of elements until your answer for the minimum transit time seems to be insensitive to the number of elements. [10] 3.000 ft B This problem is a modification of G6C4-EOC15. 10,000 ft A person at point A spots a child in trouble at point B CX- across the river. In order to reach the child in the shortest time the person runs to point C and then swims to point B, as shown. Write a MATLAB program that performs the following tasks. 1. Requests user to enter a row vector containing the running speed in ft/s as the first element and swimming speed in ft/s as the second element 2. Determines the minimum time required to reach the child 3. Displays to the CW the minimum time in an easily read format including UNITS! 4. Displays to the CW the distance run corresponding to the minimum transit time including UNITS! To determine the minimum transit time - initialize a vector of distance run ranging from 0 - 10,000 - compute the total transit time for each of the distances run - use MATLAB's built-in function min to determine the minimum total transit time and the corresponding distance run Recommendation - Start with only a few elements in your vector. After your program seems to be working correctly, increase the number of elements until your answer for the minimum transit time seems to be insensitive to the number of elements. [10]

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago