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]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d3bd81898_48566f3d3bd23b81.jpg)
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
Get step-by-step solutions from verified subject matter experts
