FUNCTION REFERENCE
deval
Evaluate the solution of a differential equation.
Evaluate the solution of a differential equation.
Syntax
sxint = deval(sol, xint)Syntax
sxint = deval(sol, xint, idx)Syntax
[sxint, spxint] = deval(sol, xint)Syntax
sxint = deval(xint, sol)Evaluates a solution structure from ode45, ode23, ode113, ode15s, ode23s, ode23t,
ode23tb, ode15i, bvp4c, bvp5c, dde23 or ddesd at the points xint with the solver's own
interpolant. Each column of sxint is the solution at one point; idx selects components.
The second output is the derivative.
Example
sol = ode45(@(t,y) -y, [0 1], 1); deval(sol, 0.5) % 0.6065Differences from MATLAB: error messages leave the argument name blank, as MATLAB does
inside evalc. The derivative of the stiff and ode113 interpolants is a central difference.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.