Obtain a solution for any set of input and data vectors to be…

Question Answered step-by-step Obtain a solution for any set of input and data vectors to be… Image transcription textLi * (x)f(x) N… Show moreObtain a solution for any set of input and data vectors to be interpolated. you can rely on a computational tool (Excel or Matlab)The program must contain the following:a) Enter the size of the two arrays.Enter the elements of array X by keyboard, you can use a for loop.Enter the elements of the array Y by keyboard, you can use a for loop.Enter the data to interpolate xi.Then call a custom function with the input arguments (X,Y,xi) that solves the Lagrange polynomial for any input data set. Math Statistics and Probability matlab INGENIERIA 1004 Share QuestionEmailCopy link Comments (0)