How to find Coefficient R

 Accepted Answer

Corrected. Please check.
R = (sum((x-meanx).*(y-meany)))./(sqrt((sum((x-meanx).^2)).*(sum((y-meany).^2))))
r2 = R^2

More Answers (0)

Categories

Asked:

LG
on 2 Jun 2022

Edited:

LG
on 16 Jun 2022

Community Treasure Hunt

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

Start Hunting!