FUNCTION REFERENCE
evaluate
Evaluate a pdeInterpolant object at 2-D query points.
Evaluate a pdeInterpolant object at 2-D query points.
Syntax
uout = evaluate(F, x, y); uout = evaluate(F, pts); uout = F.evaluate(x, y); uout = F.evaluate(pts)Evaluates the piecewise-linear interpolant F at query coordinates (x, y) (real arrays of matching size) or pts (a 2-by-nq matrix of [x; y] columns). Returns an nq-by-k matrix matching the column count of F.Values, with NaN for points outside the mesh triangulation.
Example
R1=[3;4;0;1;1;0;0;0;1;1]; g=decsg(R1); [p,e,t]=initmesh(g,'Hmax',0.5); u=(p(1,:)-p(2,:))'; F=pdeInterpolant(p,t,u); v=evaluate(F,[0.2;2.0],[0.3;0.3]); abs(v(1)-(-0.1))<1e-12 && isnan(v(2))Differences from MATLAB: supports pdeInterpolant objects only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.