How to do linear regression?
1 view (last 30 days)
Show older comments
How to do a regression line ?
1 Comment
Answers (2)
Star Strider
on 22 Aug 2018
5 Comments
Star Strider
on 22 Aug 2018
Thank you!
Actually, I got the idea for the column of ones from the documentation for the regress (link) function when I first began using it, many years ago. (I simply forgot to include polyfit and friends initially.)
Stephan
on 22 Aug 2018
I had to think about it for a few minutes. But after understanding what happens, i saw that this is a pretty nice approach.
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox 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!