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.8K
更新 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 (2026). Lagrange Interpolator Polynomial (https://jp.mathworks.com/matlabcentral/fileexchange/13151-lagrange-interpolator-polynomial), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2006b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersInterpolation についてさらに検索

lagrangepoly/

バージョン 公開済み リリース ノート
1.0.0.0

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