Is there any way to calculate R^2 (correlation coefficient) in Matlab directly?
조회 수: 3 (최근 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!