Splintcoef

Parent Previous Next

Splintcoef


Cubic spline interpolation coefficient


Syntax


splintcoef(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)

splintcoef(x, y)


See Also


Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator