Lagrange's Polynomial Interpolation
Versione 1.0.0 (4,04 KB) da
Roche de Guzman
Interpolates a scalar or vector yp = f(xp) with given x and y = f(x) vectors and xp query
Lagrange's Polynomial Interpolation based on weighted factors or Lagrange polynomials with sum = 1.
Example data:
x = [1 4 6 5]; % x vector
y = log(x); % y = f(x) vector
xp = 2 or xp = [2 3]; % x point(s) (scalar or vector) query
Use:
yp = Lagrangeinterp(x,y,xp)
to calculate
yp = f(x point) point(s) (scalar or vector)
[~,L] = Lagrangeinterp(x,y,xp)
to output the Lagrange polynomial cell array
Cita come
Roche de Guzman (2026). Lagrange's Polynomial Interpolation (https://it.mathworks.com/matlabcentral/fileexchange/94065-lagrange-s-polynomial-interpolation), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2021a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |
