Question: Write a MATLAB function that accepts ( n +1) values of x i and y i , fits n th order polynomial, evaluate it for

Write a MATLAB function that accepts (n +1) values of xi and yi , fits nth order polynomial, evaluate it for certain x value using Lagrange Interpolating Polynomial, and returns the value of y at x .

Call this function from the command window with the data given below, evaluate y at x=7 , and capture the image of the output.

Write a MATLAB function that accepts (n +1) values of xi and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!