FUNCTION REFERENCE

pde.EigenResults.interpolateSolution

Interpolate PDE eigenmodes at query coordinates.

Interpolate PDE eigenmodes at query coordinates.

Syntax

u = interpolateSolution(results, xq, yq, modeIndex)   % scalar PDE

Syntax

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

With four arguments, a scalar PDE selects the requested modes, while a system selects the requested equations at all modes. With five arguments, argument four selects equations and argument five selects modes.

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); applyBoundaryCondition(m, 'dirichlet', 'Edge', 1:4, 'u', 0); r = solvepdeeig(m, [0 80]); u = interpolateSolution(r, 0.25, 0.4, [1 2], 3); numel(u)   % 2

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.