Lnsplintcoef

Parent Previous Next

Lnsplintcoef


Linear spline interpolation coefficient


Syntax


lnsplintcoef(x, y)

x,y are vectors of the same size

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


Example


Input

Output

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

y = sin(x)

lnsplintcoef(x, y)


See Also


Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad