image thumbnail

lagrange(X,Y,Xa)

version 1.0.0.0 (764 Bytes) by Last
1 dimension Lagrange interpolation

103 Downloads

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) (https://www.mathworks.com/matlabcentral/fileexchange/55173-lagrange-x-y-xa), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!