Question: Code in Matlab Part B: Lagrange Interpolation 1. Write a function to calculate the lagrange coefficient Li at an xi function Lj - lagrangeInter(j, x,

Code in Matlab
Part B: Lagrange Interpolation 1. Write a function to calculate the lagrange coefficient Li at an xi function Lj - lagrangeInter(j, x, xi) Input: j: value to be skipped X: [x0, x1, ..., xn] xi: value to be evaluated at. Ouput: Lj: vector contains lagrange coefficient in the expansion 2. Write a function to implement the Lagrange Interpolation function val = lagrangeInterEval(x, y, xi) Input: x: [x0, x1, x2, ..., xn] y. [yo, yl, y2, ..., yn] xi: value to be evaluated at. Ouput: val = value of function at xi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
