Question: In this problem we consider polynomial interpolation on the interval 0x1. Imagine we are given (n+ 1 )y-values, y1, y2, y3, yn+1, and that the
In this problem we consider polynomial interpolation on the interval 0x1. Imagine we are given (n+ 1 )y-values, y1, y2, y3, yn+1, and that the corresponding x-values are equally spaced on the interval [0,1],i.e., (x1, x2, x3,, xn+1) = (0, 1/n, 2/n,,1).We may use polynomial interpolation to find the unique (at most)nth degree polynomial that interpolates this data,(x1, y1),(x2, y2),(x3, y3),,(xn+1, yn+1)
Write a Matlab functionp = unitInterp(y), where the input y is a vector containing the y-values, and the output p is a vector containing the coefficients of the polynomial that interpolates the data as described above.The coefficients should be given in descending order.Discuss your code and how it works. I am looking for a clear and concise description of what you have done and why it works.Hand in your discussion . Hand in your code as a file entitled unitInterp.m
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
