Download Help (Windows Only) 
Owning Class: geometry
Requires: MathScript RT Module
ZS = intrp2d_uneven(X, Y, Z, XS, YS)
ZS = intrp2d_uneven(X, Y, Z, XS, YS, method)
[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS)
[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS, method)
Legacy Name: griddata
Fits a surface to the unevenly distributed sample points that you specify. The resulting fit passes through all the specified sample points.
Name  Description  

X  Specifies the xcoordinates. X is a vector or a real matrix. If X is a vector, LabVIEW converts X into a matrix by repeating the vector.  
Y  Specifies the ycoordinates. Y is a vector or a real matrix of the same size as X. If Y is a vector, LabVIEW converts Y into a matrix by repeating the vector.  
Z  Specifies the zcoordinates. Z is a real matrix of the same size as X.  
XS  Specifies a real matrix of xcoordinates that represent the xcoordinates of the interpolation points.  
YS  Specifies a real matrix of ycoordinates that represent the ycoordinates of the interpolation points.  
method  Specifies the interpolation method to use. method is a string that accepts the following values.

Name  Description 

XS  Returns the input matrix XS unchanged. 
YS  Returns the input matrix YS unchanged. 
ZS  Returns a real matrix that represents the calculated surface at (XS, YS). 
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
X = rand(5, 5);
Y = rand(5, 5);
Z = X.^2+Y.^2;
[XS, YS] = meshgrid2d(0:0.1:1);
[XS, YS, ZS] = intrp2d_uneven(X, Y, Z, XS, YS, 'v4');
surface(XS, YS, ZS)