Compute the value of Lagrange polynomial at given points
The function is implemented based on Barycentric method. The code is vectorized for fast speed. The mesh points x is a row vector. The mesh value y is a matrix, with each row representing the mesh values of a polynomial. y(i,j) is the value of the i'th polynomial at mesh points j. The return value p is a matrix, with p(i,j) to be the value of the i'th polynomial at points t(j)
Cite As
Hongkai Dai (2024). Compute the value of Lagrange polynomial at given points (https://www.mathworks.com/matlabcentral/fileexchange/36522-compute-the-value-of-lagrange-polynomial-at-given-points), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
Tags
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.