How should i Implement a function that fits a line using least squares to the 2-D data points. It should output the two parameters of a line without using a toolbox for fitting the line. And i have to do this by doing regression
Show older comments
I need to plot the points and the line obtained from the function. Can somebody help me writing the code?
Accepted Answer
More Answers (0)
Categories
Find more on Subspace Methods in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!