|MATLAB Function Reference|
Evaluate the solution of a differential equation
sxint = deval(sol,xint) and sxint = deval(xint,sol)
evaluate the solution of a differential equation problem.
sol is a structure returned by one of these solvers:
xint is a point or a vector of points at which you want the solution. The elements of
xint must be in the interval
[sol.x(1),sol.x(end)]. For each
sxint(:,i) is the solution at
sxint = deval(sol,xint,idx) and sxint = deval(xint,sol,idx)
evaluate as above but return only the solution components with indices listed in the vector
[sxint, spxint] = deval(...) also returns
spxint, the value of the first derivative of the polynomial interpolating the solution.
For multipoint boundary value problems, the solution obtained by |
This example solves the system using
ode45, and evaluates and plots the first component of the solution at 100 points in the interval
© 1994-2005 The MathWorks, Inc.