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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!