for t = -5:.2:50 if (t > 0) && (t <= 10) vel = 11*t^2 - 5*t; elseif (t >= 10) && (t <= 20) vel = 1100 - 5*t elseif (t >= 20) && (t <= 30) vel = 50*t + 2*((t-20)^2) elseif t > 30 vel = 1520*exp(-0.2*(t-30)) else vel = 0 endend
MATLAB: I have a simple question how to save the outputs of the script to a vector
vector
Best Answer