Question
Download the Matlab data file fitdata.mat (https://drive.google.com/open?id=1b4yup-o3ZlNlBzFC7ZTj6HEXeD3_Njh6). It contains vectors of x and y data, and a vector yfit which is a fitted curve of
Download the Matlab data file fitdata.mat (https://drive.google.com/open?id=1b4yup-o3ZlNlBzFC7ZTj6HEXeD3_Njh6). It contains vectors of x and y data, and a vector yfit which is a fitted curve of the y data to the x data. Write a MATLAB script that will 1) load the data, 2) make a scatterplot of y as a function of x using black circles, 3) on the same graph, plot the fitted curve yfit using a solid line with thickness of 2 , and 4) on the same graph plot upper and lower bounds of the fitted curve, 0.3 above and below the fitted curve, using red dashed lines of thickness 2. You should put a legend and axis labels on the graph, too. The resulting plot should look like this:
Figure 1 File Edit View Insert Tools Desktop Window Help 5 O Data Fit 4LowerUpper Bounds o O 1 2 3 456 78 9 10 x dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started