spline2

spline2 führt eine 2-dimensionale Matrix zu Matrix-Interpolation durch.

rmZi = spline2(rvX, rvY, rmZ, rvXi, rvYi)

Returnwert

rmZi ist die interpolierte Matrix an den Stellen rvXi, rvYi.

Parameter

rvX

rvX sind die x-Koordinaten der Matrix rmZ.

rvY

rvY sind die y-Koordinaten der Matrix rmZ.

rmZ

rmZ ist eine Matrix.

rvXi

rvXi sind die Stützstellen in aufsteigender Folge.

rvYi

rvYi sind die Stützstellen in aufsteigender Folge.

Beispiel

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);
    hData = plotxyz(xi, xi, mi);

    if (_g().unit_test_cleanup) {
        hLayer = GetParent(hData);
        hPage =  GetParent(hLayer);
        hDoc =  GetParent(hPage);
        DocDestroy(hDoc);
    }
}
test_spline2();
Version Beschreibung
5.20 Neu.

id-1317806