Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

spline

Interpolates points between given sample values.

References

spline(original,x)

Generates the y value for a single point with given sample data.

Argument original

Matrix

Argument x

Scalar

Returns 1. entry

Matrix

Example

spline([-3,9;-2,4;-1,1;0,0;1,1;3,9], 2)

Interpolates the y value for x = 2 in this quadratic function. The final outcome is slightly greater than 4.

spline(original,x)

Generates the y values for a vector of points with given sample data.

Argument original

Matrix

Argument x

Matrix

Returns 1. entry

Matrix

Example

spline([-3,9;-2,4;-1,1;0,0;1,1;3,9], [-1.5, -0.5, 0, 0.5, 1.5])

Interpolates the y values for this x vector in the quadratic function. The final outcome is a small derivation of the real values.

Clone this wiki locally