Previous topic

fspline

Next topic

ftell

This Page

fspline2ΒΆ

fspline2 executes a 2-dimensional “matrix to matrix” interpolation.

rmZi = fspline2(rvX, rvY, rmZ, rvXi, rvYi, rsSmoothFactor)

Return Value

rmZi is the interpolated matrix for the given rvXi and rvYi coordinates.

Parameters

rvX

rvX is a vector with x-coordinates for the matrix rmZ.

rvY

rvY is a vector with y-coordinates for the matrix rmZ.

rmZ

rmZ is a matrix.

rvXi

rvX is a vector with x-coordinates for the new matrix rmZi.

rvYi

rvY is a vector with y-coordinates for the new matrix rmZi.

rsSmoothFactor

rsSmoothFactor is a number equal or greater than 0.0. No smoothing is performed for 0.0.

Example

// File created from "script\math\fspline2.ic".

def test_fspline2()
{
    if (version(1) < 5200) return;
    m = [0, 0, 0;
         0, 1, 0;
         0, 0, 0];
    x = [0, 0.5, 1]
    y = x;
    mi = fspline2(x, y, m, xi = linspace(0, 1, 50), xi, 1);
    plotxyz(xi, xi, mi);
}
test_fspline2()

History

Version Description
5.20 New

id-16394