lagrange interpolation and derivative

This function performs the Lagrange interpolation of a function and its derivative.
ダウンロード: 4.7K
更新 2006/8/24

ライセンスがありません

This function performs the Lagrange interpolation of a function (y) or its derivative (dy/dx).

usage:
y=lagrange(x,pointx,pointsy,0) or
dy=lagrange(x,pointx,pointsy,1) or
dy=lagrange(x,pointx,pointsy,2)

There are two ways to find the derivative. If dydx_on (varargin(4)) is set to 1, it will base the derivative on pointx and pointsy (y will be dy/dx). If dydx_on == 2, the derivative is based on the interpolated points.

pointsy can be an array.

This function can get slow for large amounts of control points. Also, make sure to have extra control points outside the region of interpolation interest if there are lots of control points.

引用

Geoff Wawrzyniak (2024). lagrange interpolation and derivative (https://www.mathworks.com/matlabcentral/fileexchange/11964-lagrange-interpolation-and-derivative), MATLAB Central File Exchange. 取得済み .

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

ヒントを得たファイル: Lagrange polynomial interpolation

ヒントを与えたファイル: Lagrange Interpolator Polynomial

Community Treasure Hunt

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

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

Found error in the description of input arguments. Polished up code per the code metrics.