Question: Matlab question 2. Create a function called linear that takes a file name as input, reads the file data (which has two columns of data)

Matlab question
2. Create a function called "linear" that takes a file name as input, reads the file data (which has two columns of data) and creates two vectors ("x" and "y"), creates a plot, and outputs statistical information about the vectors. (25 points) The function should: Accept as input a file name Read the file and create two vectors of equal size (x and y) Create a scatter plot of x vs. y Place a linear regression line on the same plot. Print the mean and standard deviation of each data set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
