Question: m Exercise 7. Use MATLAB to solve the equations 10 0 1 2 20 111111 14 1111111 0 2 4 5 6 8 15 0

m Exercise 7. Use MATLAB to solve the equations 10 0 1 2 20 111111 14 1111111 0 2 4 5 6 8 15 0 2 4 5 6 8 16 50 1 8 100 for k and m. Spoiler: You should get k -7.7551 and m=11.0612. Even though we told you the answer you should show in detail how to use MATLAB commands to solve for k and m. Then plot the points (0,0), (2,20),(4, 30), (5,30), (6,50), (8, 100) using red stars and on the same axes also plot the line y=k+ mr where k and m are as above. (You have just fitted a line to some data points by the method of least squares.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
