You are on page 1of 1

tion [y,ydot] = lagrange(X,Y,x,order)

%LAGRANGE Interpolation using Lagrange's method


%
%[x,xdot] = LAGRANGE(X,Y,x,order) uses Lagrange interpolation to find
F(x)
%and F'(x), where X and Y describe the function Y = F(X). The length
of X
%should be equal to the number of rows of Y. Y can have an arbitrary
%number of columns, such that the size of y (and ydot) is given by
%[length(x) size(Y,2)].
%
%F'(x) is only computed if a second output argument is provided.
%

You might also like