Question: In MATLAB, use Least Square by Matrix method to fit a line on this set of points.(x,y)=[(-0.9 0.01) (0.01 1.04) (2.1 3.09) (0.99 1.92)]. Also,
In MATLAB, use Least Square by Matrix method to fit a line on this set of points.(x,y)=[(-0.9 0.01) (0.01 1.04) (2.1 3.09) (0.99 1.92)]. Also, plot the data points and the fitted line in MATLAB. Label both axes. Write the values of m and b (slope and constant of line) in the title. The line color should be black. The data points should be shown using circles.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
