5 Write Matlab Program Interpolate R 5 4 3 2 Y 01923 02353 030 040 1 0 1 2 050 000 050 040 Q43856539
MATLAB – PLEASE HELP

5. (a) Write a matlab program to interpolate r = | -5 -4 -3 -2 y = [ -0.1923 -0.2353 -0.30 -0.40 -1 0 1 2 -0.50 0.00 0.50 0.40 3 4 5 ]. 0.30 0.2353 0.1923 ]. (b) Calculate error at the interpolated values at x = -4.5, -3.5,…, 3.5, 4.5 compared with the exact function f(x) = x/(22+1). Are these errors reasonable? (c) Plot the exact function, the interpolating polynomial and the node points on the same graph. Where is the error the largest? Comment. Show transcribed image text 5. (a) Write a matlab program to interpolate r = | -5 -4 -3 -2 y = [ -0.1923 -0.2353 -0.30 -0.40 -1 0 1 2 -0.50 0.00 0.50 0.40 3 4 5 ]. 0.30 0.2353 0.1923 ]. (b) Calculate error at the interpolated values at x = -4.5, -3.5,…, 3.5, 4.5 compared with the exact function f(x) = x/(22+1). Are these errors reasonable? (c) Plot the exact function, the interpolating polynomial and the node points on the same graph. Where is the error the largest? Comment.
Expert Answer
Answer to 5. (a) Write a matlab program to interpolate r = | -5 -4 -3 -2 y = [ -0.1923 -0.2353 -0.30 -0.40 -1 0 1 2 -0.50 0.00 0.5…
OR