[t, y] = ode45(odefun, tspan, y0)
sol = ode45(odefun, tspan, y0, options)
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. |
[t, y] = ode45(@(t,y) -y, [0 1], 1)
| Version | Description |
|---|---|
| 2.0.0 | initial version |