Is there any way to calculate R^2 (correlation coefficient) in Matlab directly?
13 ビュー (過去 30 日間)
古いコメントを表示
I would like to calculate R^2 in easy way in matlab? How can I do that?
Thanks in advance
Riyadh
0 件のコメント
採用された回答
the cyclist
2016 年 6 月 14 日
3 件のコメント
the cyclist
2016 年 6 月 15 日
編集済み: the cyclist
2016 年 6 月 15 日
I'm confused by your comment. For example,
x1 = [1; 2; 3; 4];
x2 = [7; 5; 3; 2];
correlation = corr(x1,x2)
gives a single, negative number for the correlation of these two vectors of numbers.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Industrial Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!