Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem (2): A person at point A spots a child in trouble at point B across the river as shown: 10,000 ft River 3,000 ft
Problem (2): A person at point A spots a child in trouble at point B across the river as shown: 10,000 ft River 3,000 ft 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 above. 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 time t. Plot x versus t with proper label, title, and legend. Then use MATLAB's built-in function min to find the value of x that corresponds to the shortest time
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