Lagrange Interpolator Polynomial

Versión 1.0.0.0 (15,8 KB) por Dan Ellis
Find the polynomial (defined by its coefficients) passing through a set of points.
18,7K Descargas
Actualizado 7 dic 2006

Ver licencia

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.

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2006b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Interpolation en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!

lagrangepoly/

Versión Publicado Notas de la versión
1.0.0.0

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