Question: Write a MATLAB function, called Lagrange_poly that inputs a set of data points (x; y) =(datx, daty), a set x of numbers at which to

Write a MATLAB function, called Lagrange_poly that inputs a set of data points (x; y) =(datx, daty), a set x of numbers at which to interpolate, and outputs the polynomial interpolant, y, evaluated at x using Lagrange polynomial interpolation. Your function header should look something like: function y = Lagrange_poly(x, datx, daty)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
