Lagrange's Polynomial Interpolation

버전 1.0.0 (4.04 KB) 작성자: Roche de Guzman
Interpolates a scalar or vector yp = f(xp) with given x and y = f(x) vectors and xp query
다운로드 수: 40
업데이트 날짜: 2021/6/13

라이선스 보기

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

인용 양식

Roche de Guzman (2024). Lagrange's Polynomial Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/94065-lagrange-s-polynomial-interpolation), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2021a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0