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

다운로드 수: 32

업데이트 날짜: 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
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 (2022). 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!