Cusplintcoef

Parent Previous Next

Cusplintcoef


Cubic spline interpolation coefficient


Syntax


cusplintcoef(x, y)

x,y are vectors of the same size

Return return an matrix whose rows contains coefficients to calculate cubic spine interpolation for each data interval.


Example


Input

Output

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

y = sin(x)

cusplintcoef(x, y)


See Also


Created with the Personal Edition of HelpNDoc: Produce electronic books easily