Question: Please help me with the Matlab code. Thanks in advance Write a Matlab function, called Lagrange_poly that inputs a set of data points datx and
Please help me with the Matlab code. Thanks in advance
Write a Matlab function, called Lagrange_poly that inputs a set of data points datx and daty, a column vector x at which to interpolate, and outputs the polynomial interpolant, y (a column vector), evaluated at x using Lagrange polynomial interpolation as well as the Lagrange polynomials L. Your function header should look something like: function [y, L] = 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
