Subtract element one from element two in a 1x101 row vector.
3 views (last 30 days)
I need to subtract the first element of a vector from the second element. Then continue in that manner.
E3 - E2 then E4 - E3 then E5 - E6 to the end.
% Calculate the Velocity and Accelleration for particle 1 at all times.
t=A1_input(:,1)'; % Time in Seconds.
% Calculate the Time for particle using loops.
Time(36) % Trial ans wrong