Question: Consider the data points (-1, 1), (0,1), (2,0). a) (MATLAB) Use the MATLAB functions polyfit and polyval to obtain and plot the global interpolant

Consider the data points (-1, 1), (0,1), (2,0). a) (MATLAB) Use the MATLAB functions polyfit and polyval to obtain and plot the global interpolant in the interval (-2,3]. b) (by hand) Determine the expressions of the natural cubic spline in both intervals [-1,0] and [0,2]. (MATLAB) Use the MATLAB function csape to recover the result of e) and plot it in the interval [-2,3).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
