spline2 executes a 2-dimensional “matrix to matrix” interpolation.
Return Value
rmZi is the interpolated matrix for the rvXi, rvYi coordinates.
Parameters
rvX is a vector with x-coordinates for the matrix rmZ.
rvY is a vector with y-coordinates for the matrix rmZ.
rmZ is a matrix.
rvXi is a vector with x-coordinates for the new matrix rmZi.
rvYi is a vector with y-coordinates for the new matrix rmZi.
Example
// File created from "script\math\spline2.ic".
def test_spline2()
{
if (version(1) < 5200) return;
m = [0, 0, 0;
0, 1, 0;
0, 0, 0];
x = [0, 0.5, 1]
y = x;
mi = spline2(x, y, m, xi = linspace(0, 1, 50), xi);
plotxyz(xi, xi, mi);
}
test_spline2()
History
| Version | Description |
|---|---|
| 5.20 | New |
See also
Overview Mathematic, akimaspline2, fspline2, interpol2, rspline2, griddata
id-1317806