Lagrange interpolation polynomial fitting with MATLAB
Version 1.1.0.0 (2,32 KB) von
Tamir Suliman
Lagrange interpolation polynomial fitting
Lagrange interpolation polynomial fitting a set of points LAGRANG(X,Y,N,XX) where X and Y are row vector defining a set of N points uses Lagrange's method to find the N th order polynomial in X that passes through these points.
This program calculates and plots the Lagrange interpolation polynomial for a given set of data points. The Lagrange interpolation is a method to find an (n-1)th order polynomial that passes through n data points (x, y).
The input parameters for the program are:
- x: A row vector containing the x-coordinates of the data points.
- y: A row vector containing the y-coordinates of the data points.
- n: The number of data points.
- xx: A specific x-value to evaluate the interpolation polynomial.
Zitieren als
Tamir Suliman (2026). Lagrange interpolation polynomial fitting with MATLAB (https://de.mathworks.com/matlabcentral/fileexchange/60686-lagrange-interpolation-polynomial-fitting-with-matlab), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2016b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math > Polynomials >
Mehr zu Polynomials finden Sie in Help Center und MATLAB Answers
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Lagrang
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.0 | * Moved the function description to the first line as a comment block.
|
||
| 1.0.0.0 | updated figure
|
