Cusplint

Parent Previous Next

Cusplint


Cubic spline interpolation


Syntax


cusplint(x, y, t)

x,y are vectors of the same size, t is a scalar

Return a value interpolated from x , y data set for t based on cubic spine interpolation.


Example


Input

Output

x = linspace(0, PI/8.0, 8)

y = sin(x)

cusplint(x, y, PI/16.0)


See Also


Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation