lagrange interpolation and derivative

버전 1.0.0.0 (1.4 KB) 작성자: Geoff Wawrzyniak
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 CenterMATLAB Answers에서 Interpolation에 대해 자세히 알아보기

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.