필터 지우기
필터 지우기

How do I find the correlation coefficient between two vector arrays?

조회 수: 254 (최근 30일)
Lakyn
Lakyn 2016년 8월 23일
댓글: Jeff Miller 2018년 7월 19일
Hi guys, I transformed 2 matrices into vector arrays, so like each vector has 1 column and 2850 rows. How do I find the correlation coefficient between the two vector arrays?
I tried to use corrcoef, but I don't think it works in this case yes?
Thank you!

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2016년 8월 23일
편집: Andrei Bobrov 2016년 8월 23일
R = corrcoef(A,B)
Please read about corrcoef.
  댓글 수: 3
farah arabian
farah arabian 2018년 7월 19일
I also have the same question, I have two column vectors, When I use corrcoef it gives me 1 but when I use xcov it give me a logical answer, which one is correct?
Jeff Miller
Jeff Miller 2018년 7월 19일
What does this figure look like?
scatter(A,B);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by