Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How do i solve or enter this problem into MATLAB so i can be able to solve it. T

ID: 1818188 • Letter: H

Question

How do i solve or enter this problem into MATLAB so i can be able to solve it.

Two Divers start at the surface and establish the following coordinate system: x is to the west, y is to the north and z is down. Diver 1 swims 60 Ft east, then 25 ft south, and then dives 30ft. at the same time diver 2, dives 20 ft, swims 30 ft, and then south 55 ft.


A) compute the distance between diver 1 and the starting point.
B) how far in each direction must diver 1 swim to reach diver 2?
C) how far in a straight line must diver 1 swim to reach diver 2?

Explanation / Answer

MATLAB is a great program for manipulating vectors. Your problem is a very simple vector problem which requires nothing more than determining the magnitude of a vector and also vector subtraction. While you don't give enough information to actually solve the problem (you omitted the direction diver 2 swims) this can still be solved symbolically. Let diver 1 be named D1, then the distances he swims in the west, north, and down directions would be (using negatives for east, south, and up directions): D1=[d1w, d1n, d1d] % for distance of diver 1 west, north, and down respectively. and diver 2: D2=[d2w, d2n, d2d] The distance of diver 1 from the starting point is found by using the built in MATLAB function "norm" which calculates the magnitude of a vector, thus the answer to A is: norm(D1) The distances in each direction diver 1 must swim to get to diver 2 is simply: D2-D1 And the straight line distance from diver 1 to diver 2 is thus: norm(D2-D1) I hope this helps!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote