Finding the pearson correlation coefficient
1 次查看(过去 30 天)
显示 更早的评论
I have an array A which is a 139x120 double and an array B which is a 1x120 double. For each row of A, I want to find the Pearson correlation coefficient for the i th column of A with the i th column of B, ending up with an array that is 139x120. There are no NaN values in any of my arrays. I have tried using corr, but have been unable to get what I want. How do I go about doing this?
Thank you in advance.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!