How do I find the correlation coefficient between two vector arrays?
242 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
回答(1 个)
Andrei Bobrov
2016-8-23
编辑:Andrei Bobrov
2016-8-23
R = corrcoef(A,B)
3 个评论
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!