FUNCTION REFERENCE
pde.TimeDependentResults.interpolateSolution
Interpolate a time-dependent PDE solution at query coordinates and time indices.
Interpolate a time-dependent PDE solution at query coordinates and time indices.
Syntax
u = interpolateSolution(results, xq, yq, timeIndex) % scalar PDESyntax
u = interpolateSolution(results, xq, yq, equationIndex, timeIndex)With four arguments, a scalar PDE selects the requested time steps, while a system selects the requested equations at all time steps. With five arguments, argument four selects equations and argument five selects time steps.
Example
m = createpde(2); geometryFromEdges(m, decsg([3;4;0;1;1;0;0;0;1;1])); generateMesh(m, 'Hmax', 0.5); specifyCoefficients(m, 'm', 0, 'd', 1, 'c', 1, 'a', 0, 'f', [0; 2]); setInitialConditions(m, [0; 0]); r = solvepde(m, [0 0.5 1]); u = interpolateSolution(r, 0.25, 0.4, 2, 3); abs(u - 2) < 1e-10 % 1Differences 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.