HOW TO FIND THE R-SQUARED VALUE
3 次查看(过去 30 天)
显示 更早的评论
Hi,
i have plotted the graph using fitlm of wikinson notation as shown here where i have forced the intercept of the fitted line to be zero. How to find out the Rsquared value directly displaced on the command window.???
Thanks in advance
0 个评论
采纳的回答
Peng Li
2020-5-10
mdl.Rsquared
check https://www.mathworks.com/help/stats/linearmodel.html for properties and methods related to linear regression model.
3 个评论
Peng Li
2020-5-11
did you mean the default command window output for mdl?
but anyway you can access to it by mdl.Rsquared, and you can access to many other properties of linear regression class as well.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!