Question: Please code in matlab for question a b c. Using the following data X O 2 y 5 10 4 21 6 15 8 18

Please code in matlab for question a b c.
Using the following data X O 2 y 5 10 4 21 6 15 8 18 10 18 12 30 14 35 16 42 Interpolate using the following methods on a finder x vector, x (0,16), Ax = 0.1 a) Matlab's built-in "nearest" method. Save the resulting vector on HW5_1.dat b) Matlab's built-in "linear" method. Save the resulting vector on HW5_2.dat c) Matlab's built-in "spline" method. Save the resulting vector on HW5_3.dat d) A "nearest" method written by you. Save on HW5_4.dat e) A "linear" method written by you. Save on HW5_5.dat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
