Example (1): Write a MATLAB program to create x and y vectors to represent the following data: 10 20 30 40 50 60 70 80 90 100 23 45 60 82 111 140 167 198 200 220 Then, do the following (print the...

Please solve quickly MatlabExample (1): Write a MATLAB program to create x and y vectors to represent the<br>following data:<br>10<br>20<br>30<br>40<br>50<br>60<br>70<br>80<br>90<br>100<br>23<br>45<br>60<br>82<br>111<br>140<br>167<br>198<br>200<br>220<br>Then, do the following (print the results):<br>1. Use linear interpolation to approximate the value of y when x= 15.<br>2. Use linear interpolation to approximate the value of y when x= 10:5:100.<br>3. Use cubic spline interpolation to approximate the value of y when x = 15.<br>4. Use cubic spline interpolation to approximate the vahue of y when x =<br>10:5:100,<br>5. Plot the original data and the interpolated data (linear and Cubic spline) on an<br>x-y plot, the plot must include a title, labels for axes, legend, use appropriate<br>styles for markers and lines.<br>

Extracted text: Example (1): Write a MATLAB program to create x and y vectors to represent the following data: 10 20 30 40 50 60 70 80 90 100 23 45 60 82 111 140 167 198 200 220 Then, do the following (print the results): 1. Use linear interpolation to approximate the value of y when x= 15. 2. Use linear interpolation to approximate the value of y when x= 10:5:100. 3. Use cubic spline interpolation to approximate the value of y when x = 15. 4. Use cubic spline interpolation to approximate the vahue of y when x = 10:5:100, 5. Plot the original data and the interpolated data (linear and Cubic spline) on an x-y plot, the plot must include a title, labels for axes, legend, use appropriate styles for markers and lines.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here