(Will be removed) Interpolate scattered data
Note:

TriScatteredInterp
is used to perform interpolation
on a scattered dataset that resides in 2D or 3D space. A scattered
data set defined by locations X
and corresponding
values V
can be interpolated using a Delaunay triangulation
of X
. This produces a surface of the form V
= F(X)
. The surface can be evaluated at any query location QX
,
using QV = F(QX)
, where QX
lies
within the convex hull of X
. The interpolant F
always
goes through the data points specified by the sample.
The Delaunay triangulation of a set of points is a triangulation such that the unique circle circumscribed about each triangle contains no other points in the set. The convex hull of a set of points is the smallest convex set containing all points of the original set. These definitions extend naturally to higher dimensions.
TriScatteredInterp  (Will be removed) Interpolate scattered data 
X  Defines locations of scattered data points in 2D or 3D space.  
V  Defines value associated with each data point.  
Method  Defines method used to interpolate the data .  
natural  Natural neighbor interpolation  
linear  Linear interpolation (default)  
nearest  Nearest neighbor interpolation 
Value. To learn how this affects your use of the class, see Comparing Handle and Value Classes in the MATLAB^{®} ObjectOriented Programming documentation.
Create a data set:
x = rand(100,1)*42; y = rand(100,1)*42; z = x.*exp(x.^2y.^2);
F = TriScatteredInterp(x,y,z);
(qx, qy)
. The
corresponding value at these locations is qz
:ti = 2:.25:2; [qx,qy] = meshgrid(ti,ti); qz = F(qx,qy); mesh(qx,qy,qz); hold on; plot3(x,y,z,'o');
delaunayTriangulation
 interp1
 interp2
 interp3
 meshgrid