matlab - ODE45 and time interval -
ode45 function in matlab takes argument:
(function,[tinitial tfinal],yinitial) but here, believe, span of time predetermined. how can assign vector it? mean how solve ode domain 1:0.1:5?
thank you.
if need values @ specified points in time, go:
tspan = 1:0.1:5 [t y] = ode45(odefun, tspan, y0) t should same tspan, , y corresponding values each point in time.
Comments
Post a Comment