FUNCTION REFERENCE

pde.StationaryResults.interpolateSolution

Interpolate a stationary PDE solution at query coordinates.

Interpolate a stationary PDE solution at query coordinates.

Syntax

u = interpolateSolution(results, xq, yq)

Syntax

u = interpolateSolution(results, xq, yq, equationIndex)

Evaluates the finite-element solution stored in results at points (xq, yq), returning NaN outside the mesh.

Example

m = createpde; geometryFromEdges(m, decsg([3;4;0;1;1;0;0;0;1;1])); generateMesh(m, 'Hmax', 0.5); specifyCoefficients(m, 'm', 0, 'd', 0, 'c', 1, 'a', 0, 'f', 1); applyBoundaryCondition(m, 'dirichlet', 'Edge', 1:4, 'u', 0); r = solvepde(m); interpolateSolution(r, 0.5, 0.5) > 0   % true

Differences from MATLAB: Call as interpolateSolution(results, ...); dot-call syntax is not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.