FUNCTION REFERENCE
ode23
Solve nonstiff differential equations, low order (Bogacki-Shampine 3(2)).
Solve nonstiff differential equations, low order (Bogacki-Shampine 3(2)).
Syntax
[t, y] = ode23(@(t,y) -y, tspan, y0)Syntax
[t, y] = ode23(@f, tspan, y0, options, p1, p2, ...)Syntax
[t, y, te, ye, ie] = ode23(@f, tspan, y0, odeset('Events', @eventFcn))Syntax
sol = ode23(@f, tspan, y0)Syntax
[t, y] = ode23('f', tspan, y0)Syntax
[t, y] = ode23('f', tspan, y0, options)Syntax
t = ode23('f', tspan, y0)Same inputs and outputs as ode45. Each step is cheaper but less accurate,
so ode23 suits loose tolerances. tspan = [t0 tf] returns the solver steps
only (Refine 1).
Example
[t, y] = ode23(@(t,y) -y, [0 1], 1); y(end) % 0.3679Differences from MATLAB: the options Mass, NormControl and Stats are not supported
yet; they stop with an error. NonNegative, OutputFcn and OutputSel are supported. With a function name, one output is t, as in
MATLAB. With a handle, one output is the solution structure described under
ode45. With no output argument, the single-output result becomes ans instead
of plotting. deval and odextend accept the structure.
NaN or Inf in tspan stops with an error; MATLAB does not reject NaN.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.