Question: Hi please help me with this using MATLAB code, thank you! a ) Complete the script that generates a table showing the position ( x

Hi please help me with this using MATLAB code, thank you!
a) Complete the script that generates a table showing the position (x,y)
of each ship as a function of time for the next three (3) hours.
b) Expand the output table to display the distance between the two ships
as a function of time.
c) If the visibility is 10 miles, when [HH:MM], and for how long
(minutes), would people from the two ships be able to see each other?
Extra-credit [15 points]
Plot the distance (d) between the two ships as a function of time ( t )
dA-B=(xA-xB)2+(yA-yB)22
Note: to receive full credit your script must use Tables and
Lists
The fundamental equations are
x=x0+Vxt+12axt2
y=y0+Vyt+12ayt2
Here the ships travel at a constant speed (i.e. the accelerations are ax=
ay=0!)Two ships, A and B, depart from two different ports. Ship "A" travels
towards the NE (i.e., towards the East in an angle, , of 30 North) at a
constant (ax=ay=0) speed of 14 miles per hour, while Ship "B" travels
South at a constant (ax=ay=0) speed of 7 miles per hour. At 7:30 AM,
the ships are positioned as shown in the schematic below:
At 7:30 AM
Ship "A"
xAo=-sAcos
yA0=-sAsin
VA,x=VAcos
VA,y=VAsin
Ship "B"
xBo=0
yBo=sB
VB,x=0
VB,y=-VB
Hi please help me with this using MATLAB code,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!