FUNCTION REFERENCE
pdeval
Interpolate a PDE solution component and its spatial derivative.
Interpolate a PDE solution component and its spatial derivative.
Syntax
uout = pdeval(m,xmesh,ui,xout); [uout,duoutdx] = pdeval(m,xmesh,ui,xout)Pass the geometry and spatial mesh used by pdepe and one solution row, such as sol(i,:,k). Query points must lie within the mesh. Both outputs have the shape of xout. Uses the solver's element interpolation: linear for m=0, quadratic in x for polar domains starting at zero, logarithmic for regular cylindrical domains, and reciprocal for regular spherical domains. At interior mesh points the derivative is taken from the interval to the right; at the last point it is taken from the left.
Example
[u,dudx]=pdeval(0,[0 .5 1],[0 1 2],[.25 .75])Differences from MATLAB: finite real inputs and a single solution component only. Uses the same fixed-mesh limits as pdepe; returns an empty result for empty xout.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.