15. A person at point A spots a child in trouble at point B across the river....

Question:

15. A person at point A spots a child in trouble at point B across the river. The person can run at a speed of 8.6 ft/s and can swim at a speed of 3.9 ft/s. 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 determines the distance x to point C that minimizes the time the person can reach the child.

In the program define a vector x with values ranging from 0 to 5,000 with increments of 1. Use this vector to calculate the corresponding values of x.Then use MATLAB’s built-in function min to find the value of x that corresponds to the shortest time.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: