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 LinuxCategories
- MATLAB > Mathematics > Interpolation >
Find more on Interpolation in Help Center and MATLAB Answers
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |