HOW TO FIND THE R-SQUARED VALUE

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

 Risposta accettata

Peng Li
Peng Li il 10 Mag 2020

0 voti

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

3 Commenti

DEWDROP
DEWDROP il 10 Mag 2020
Thank you very much for your reply .but i want to display the R squared value itself in the command window. when i dont forced the intercept to be zero ,it diplays the value but it doesnot when i forced it to be zero.
Peng Li
Peng Li il 11 Mag 2020
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.
DEWDROP
DEWDROP il 15 Mag 2020
yes.i meant the default command window output

Accedi per commentare.

Più risposte (0)

Tag

Richiesto:

il 10 Mag 2020

Commentato:

il 15 Mag 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by