FUNCTION REFERENCE
ode113
Solve nonstiff differential equations, variable order (Adams-Bashforth-Moulton PECE).
Solve nonstiff differential equations, variable order (Adams-Bashforth-Moulton PECE).
Syntax
[t, y] = ode113(@(t,y) -y, tspan, y0)Syntax
[t, y] = ode113(@f, tspan, y0, options, p1, p2, ...)Syntax
[t, y, te, ye, ie] = ode113(@f, tspan, y0, odeset('Events', @ev))Syntax
sol = ode113(@f, tspan, y0)Integrates dy/dt = f(t, y) with a variable-step, variable-order (1 to 12) Adams
predictor-corrector using modified divided differences and local extrapolation,
as described by Shampine and Gordon (1975) and Hairer, Norsett and Wanner (1993,
sections III.5 and III.7). Error estimates select the step size and order; steps,
statistics and numerical values can differ from MATLAB.
tspan = [t0 tf] returns the solver steps; a longer tspan returns y at exactly those
times, interpolated. Options from odeset: RelTol, AbsTol, NormControl, MaxStep,
InitialStep, Refine, Stats, Events, Mass. See odeset for event outputs and extra
arguments after options.
One output with a handle gives a solution structure for deval and odextend.
Example
[t, y] = ode113(@(t,y) -y, [0 1], 1); y(end) % 0.3679Differences from MATLAB: OutputFcn, OutputSel and NonNegative (including with
Mass) are supported. sol.idata keeps phi3d as a 2-D neq-by-(14*N) matrix.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.