Question: Problem 3: (5 points) Write a function with the header [Y] myQuadInterp (x, y, x) which uses quadratic interpolation to find the estimated value of

 Problem 3: (5 points) Write a function with the header [Y]

Problem 3: (5 points) Write a function with the header [Y] myQuadInterp (x, y, x) which uses quadratic interpolation to find the estimated value of Y at x. x and y will always have three elements. To do this, you will have to tup a 2D array A which is 3x3 defined as: I. se x1 1 2. Solve the equation a = A\y; for the coefficients of a quadratic interpolant which has the formm 3. Put x in the interpolant to solve for y. (You can either code the above interpolant function or use polyval.) 4. Return Y from the function. Test Cases: >>>> myQuadInterp ([6.4 6.7 7.0], [19 20 21]', 6.9) ans 20.666666666666668 >> format long myQuadInterp ([2.8 3.1 3.4], [7 8 9]', 3.14159) ans - 8.138633333333333

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!