Lagrange Interpolator Polynomial

版本 1.0.0.0 (15.8 KB) 作者: Dan Ellis
Find the polynomial (defined by its coefficients) passing through a set of points.
18.6K 次下载
更新时间 2006/12/7

查看许可证

The two inputs X and Y are vectors defining a set of N points. The function uses Lagrange's method to find the N-1th order polynomial that passes through all these points, and returns in P the N coefficients defining that polynomial. Then, polyval(P,X) = Y.
R returns the x co-ordinates of the N-1 extrema/inflection points of the resulting polynomial (roots of its derivative), and S returns the value of the polynomial at those points.

For a general-purpose way to find a smooth curve connecting points, you probably want to use SPLINE instead.

引用格式

Dan Ellis (2024). Lagrange Interpolator Polynomial (https://www.mathworks.com/matlabcentral/fileexchange/13151-lagrange-interpolator-polynomial), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

lagrangepoly/

版本 已发布 发行说明
1.0.0.0

- added example to comments as per code metrics report
- removed spurious Mac OS X files from zip archive