Code for equations:
t=0:1e-2:10;
x1=5-t/2;
y1=zeros(1,length(x1));
x2=zeros(1,length(t));
y2=6-7*t/10;
x3=6*cos(pi*t/4);
y3=6*sin(pi*t/4)+6;
plot(x1,y1,x2,y2,x3,y3);
legend(‘First’,’Second’,’Third’)
We were unable to transcribe this imageThe train station is located at the origin. Compute the distance between each train and the train station and plot the three results on another figure ExQ1 2.fig. The equation for the distance between a train station and the nth train is n(t)x2(t) + y2(t) (km) Using logical vectorization determine the first time and last time where the distance between all three trains
OR
OR