ode45
Nonstiff ODE solver.
📝Syntax
[t, y] = ode45(odefun, tspan, y0)
sol = ode45(odefun, tspan, y0, options)
📄Description

ode45 solves an initial value problem with adaptive explicit steps.

Item Details
Problem form y' = f(t,y), with initial value y0.
Inputs odefun, tspan, y0, and options created with odeset.
Outputs [t,y] arrays or a sol structure compatible with deval and odextend.
Events The Events option fills te, ye, and ie, or the xe, ye, and ie structure fields.
💡Examples
Exponential decay.
[t, y] = ode45(@(t,y) -y, [0 1], 1)
🔗See Also
odesetdeval
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub