Question: Download the data file Class10Data1.mat. Write a function in which you a) plot the data using a scatter plot of y vs. x to check
Download the data file Class10Data1.mat. Write a function in which you a) plot the data using a scatter plot of y vs. x to check that a linear model makes sense, use polyfit to fit a linear model to the data and output the slope and intercept, and plot the best-fit line on the same graph as the scatter plot. Although the data isnt given could you give like a template? im not sure how to check that it is linear.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
