Lnsplint

Parent Previous Next

Lnsplint


Linear spline interpolation


Syntax


lnsplint(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 linear spine interpolation.


Example


Input

Output

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

y = sin(x)

lnsplint(x, y, PI/16.0)


See Also


Created with the Personal Edition of HelpNDoc: Free EPub producer