Download Help (Windows Only) 
Owning Class: approximation
Requires: MathScript RT Module
z2 = interpolate2d(z1, times)
z2 = interpolate2d(z1, x2, y2)
z2 = interpolate2d(x1, y1, z1, x2, y2)
z2 = interpolate2d(x1, y1, z1, x2, y2, method)
Legacy Name: interp2
Interpolates zvalues based on sample data using a specified method.
Name  Description  

z1  Specifies the sample zvalues. z1 is a real, doubleprecision matrix.  
times  Specifies the number of times LabVIEW must interpolate recursively between the given points. Specifically, LabVIEW adds 2^(times)1 points between each given set of points. times is an integer.  
x2  Specifies the xvalues at which you want to interpolate zvalues. x2 is a row vector or a matrix of real, doubleprecision numbers.  
y2  Specifies the yvalues at which you want to interpolate zvalues. If x2 is a row vector, y2 must be a real, doubleprecision column vector. If x2 is a matrix, y2 must be a real, doubleprecision matrix of the same size as x2.  
x1  Specifies the sample xvalues. If you do not specify x1, LabVIEW sets x1 to the values of 0 ... m 1 where [m, n] equals size(z1). x1 is a real, doubleprecision vector.  
y1  Specifies the sample yvalues. If you do not specify y1, LabVIEW sets y1 to the values of 0 ... n 1 where [m, n] equals size(z1). y1 is a real, doubleprecision vector.  
method  Specifies the interpolation method to use. method is a string that accepts the following values.

Name  Description 

z2  Returns the zvalues interpolated at the values of (x2, y2). z2 is a real, doubleprecision matrix. 
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 
Z1 = zeros(10, 10);
for i = 1:10
for k = 1:10
Z1(i, k) = i^2+4*i+3*k^42*k;
end
end
Z2 = interpolate2d(Z1, 2);
Helpful
Not Helpful