Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

Students also viewed these Databases questions