Calls the MATLAB GRIDDATA function. Returns a real array of Zi values corresponding to the ordered pairs in Xi, and Yi.
Note: | GRIDDATA uses only linear interpolation method which is the MATLAB default. |
Format
GRIDDATA (x, y, z, Xi, Yi)
Argument
x | The x values of the original data for which the grid is to be computed. |
y | The y values of the original data. |
z | The z values of the original data. |
Xi | The x values of the points at which the grid is to be evaluated. |
Yi | The y values of the points. |
Example
variable create variable=Xi real=1,2,3,1,2,3,1,2,3
variable create variable=Yi real=1,1,1,2,2,2,3,3,3
variable create variable=Zi real=(GRIDDATA({1,1,4,4},{5,5,6,6}, Xi, Yi,))
produces a value of
{5,0, 5.33, 5.67, 5.0, 5.33, 5.67, 5.0, 5.33, 5.67}
corresponding to the points
(1,1, 5.0)(2,1, 5.33)(3,1, 5.67)(1,2, 5.0)(2,2, 5.33)(3,2, 5.67)(1,3, 5.0)(2,3, 5.33)(3,3, 5.67)