FUNCTION REFERENCE

scatteredInterpolant

Handle object for two- or three-dimensional scattered-data interpolation.

Handle object for two- or three-dimensional scattered-data interpolation.

Syntax

F = scatteredInterpolant(P, v)

Syntax

F = scatteredInterpolant(x, y, v)

Syntax

F = scatteredInterpolant(x, y, z, v)

Syntax

F = scatteredInterpolant(..., method, extrapolationMethod)

Call F(Pq), F(xq, yq), or F(xq, yq, zq). Linear Delaunay-barycentric and nearest methods are available; Points, Values (alias V), Method and ExtrapolationMethod are properties.

Example

F = scatteredInterpolant([0 1 0], [0 0 1], [0 1 2]); F(0.25, 0.25)   % 0.75

Example

F = scatteredInterpolant([0 0 0; 1 0 0; 0 1 0; 0 0 1], [0; 1; 2; 3]); F([0.25 0.25 0.25])   % 1.5

Differences from MATLAB: natural-neighbour interpolation and mutable Points are not supported yet. Up to 200000 points are supported.

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