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.5K
업데이트 날짜: 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