I have a simple question how do I save the outputs of my script to a vector
Mostra commenti meno recenti
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
end
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Powertrain Blockset in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!