How can I force fit the y axis intecept of 'fitlm' to an arbitrary value?
3 views (last 30 days)
Show older comments
I'd like to perform a linear fit y = m(x) + q and force the q to a given value that is not zero.
How should I call fitlm to take q into account instead of fitting the q?
fitlm(X,Y,'Intercept',true) versus fitlm(X,Y,'Intercept',false); either leads to a fitted intercept or a force fit through zero.
0 Comments
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!