MATLAB: HOW TO FIND THE R-SQUARED VALUE

g++

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

Best Answer

  • mdl.Rsquared
    check https://www.mathworks.com/help/stats/linearmodel.html for properties and methods related to linear regression model.