lagrange(X,Y,Xa)

Version 1.0.0.0 (764 Bytes) by Last
1 dimension Lagrange interpolation
114 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 (2024). 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
Find more on Interpolation in Help Center and MATLAB Answers
Acknowledgements

Inspired: Métodos Numéricos

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0