How to find correlation coefficient between two global maps

조회 수: 1 (최근 30일)
Melissa
Melissa 2015년 5월 15일
댓글: Melissa 2015년 5월 17일
Hello,
I have two global datasets of dimensions 288(longitude) x192(latitude)
I would like to calculate the correlation coefficient between the two of these global spreads
When use corrcoef(A,B) I just get a matrix of NaN's
Is there another command I should use?
Thanks,
Melissa

채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 16일
Were all of the results NaN or only some of them?
If all of the results were NaN, then each of the two matrices A and B consisted of identical values (identical within the individual matrix).
If one of the entries was 1 and the other three were NaN, then if the 1 was in the upper left then A had at least two distinct entries, and if the 1 was in the lower right then B had at least two distinct entries.
  댓글 수: 1
Melissa
Melissa 2015년 5월 17일
yes, all of the results were NaN. However, when I look at the two matrixes, I the values are not identical. Why else would it still be NaN?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by