Question: Create a MATLAB subroutine called a. Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points

Create a MATLAB subroutine called a. Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (h-x_i-x_i-1=1) using Lagrange interpolation form. Create a main program that calls the subroutine and interpolate: a. (-1, 5) (0, 8), (3, -10), interpolate f(-0.5), f(1.25) and f(2.75)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
