image thumbnail


version (764 Bytes) by Last
1 dimension Lagrange interpolation


Updated 30 Jan 2016

View License

The function finds the Lagrange polynomials that passes through the points (x1,y1), (x2,y2), ... (xn,yn).
It takes in parameter 3 variables:
X = [x1,x2,...xn]
Y= [y1,y2,...yn];
Xa : the point we want to calculate P(Xa).
it returns the Lagrange Polynomial (P) and P(Xa).

Cite As

Last (2021). lagrange(X,Y,Xa) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!