Finding the pearson correlation coefficient

조회 수: 2 (최근 30일)
Syed Wafa
Syed Wafa 2016년 4월 6일
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개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by