Code 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 X Q37219077

The train station is located at the origin. Compute the distance between each train and the train station and plot the three

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.