clc
clear
disp("kaliyah johnson")
t = 0:0.01:10
XA = 0.6*t;
XB = 0.05*t.^2+0.1*t+0.5;
plot(t, XA,t,XB )
xlabel('Time (sec)');
ylabel('Position(m)');
title('Position of Cart A and Cart B lab#3 by kaliyah johnson');
t1=1.13;
t2=8.87;
x1 = 6*t1;
x2 = 6*t2;
To embed this project on your website, copy the following code and paste it into your website's HTML: