Question: Show code in MATLAB and explain You are given the following errorless data set: 1 2 3 5 7 8 f(x) 36 19 99 291

Show code in MATLAB and explain
You are given the following errorless data set: 1 2 3 5 7 8 f(x) 36 19 99 291 444 a. Use nearest neighbour interpolation to find f (x) for the following x values: 2.8, 4.4, and 7.1 b. Implement a MATLAB function or script to perform interpolation based on the closest 2,3, and 4 points using Lagrangian interpolating polynomials Run your function/script on the x values given in a) for the closest 2-, 3-, and 4-point Lagrangian interpolating polynomial C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
