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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -