Question: #1 is optional BUT please do #2 Matlab Given the following set of x, y points X Y 2.0 7.5 4.5 7.1 5.5 6.0 7.0
Given the following set of x, y points X Y 2.0 7.5 4.5 7.1 5.5 6.0 7.0 5.9 8.0 4.3 9.5 3.5 11.0 3.2 12.0 1.1 Create the vectors and save in a "mat" file. Set up a program that reads the mat file and uses a linear interpolation to find a value in this table when a user enters a value of x they want to find the value of y they need. the program asks the user for x and then produces the value of y from the table data It will then ask for another x value and so forth and print a message if the value of x is out of the range of the table. the program terminates on some special value of x (your choice). Be sure to let the user know what it is all about. Develop a program that gets data again from the mat file and then Plots the individual points with 'o' circle marks Fits a cubic spline to the data, use "star'' marks Fits a linear least square curve, use "diamond" marks Fits a 7th order polynomial, use "x" marks Plots all curves simultaneously using different symbols for the plots. Be sure to use an axis command to expand the range for better visibility of the final graph. See also help plot Do this in an m-file and attach the final graph., Answer this question. Which curve fits the data the best and why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
