Question: (a) (2 points) Specify a system of linear equations whose solution solves the following problem. Determine the coefficients of the polynomial p(x) = co +

(a) (2 points) Specify a system of linear equations whose solution solves the following problem. Determine the coefficients of the polynomial p(x) = co + cix + c2x2 + c3x3 that interpolates f(x) = cos(nz) at the points x-|| , Note: either write out this system by hand, using entries like () or determine the entries of this linear system in MATLAB. (b) (2 points) Use the MATLABoperator to solve the above linear system for the coefficients of p(x) (c) (2 points) Using fplot in MATLAB, plot (on one graph) the graphs of f(z) and Plz) on the interval [3. Hint: You will need to use the hold on command to get them both on the same graph with fplot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
