matlab.internal.math.interp2
is a built-in interpolation function in MATLAB. It is an internal function and it is not intended to be called directly by the user. However, the function can be accessed indirectly by using the interp2
function in MATLAB.
The interp2
function can be used to perform two-dimensional interpolation on a given set of data. It takes the following inputs:
main.m26 chars2 lines
X
and Y
are the arrays that define the grid of the values in V
.V
is the array of values to interpolate.Xq
and Yq
are the arrays that define the grid of points at which to interpolate the values in V
.The output of the function is Vq
, which is an array of interpolated values at the points specified by Xq
and Yq
.
Here is an example of how to use the interp2
function in MATLAB:
main.m440 chars19 lines
gistlibby LogSnag