Hi Everyone,
I have performed corr on 2 matrices. How can I omit the correlations that are between the same variables? corr(A,B).
A and B are 25 (subjects) x 100 (variables) each.
Thanks.

댓글 수: 4

ANKUR KUMAR
ANKUR KUMAR 2017년 12월 2일
I am not able to understand your question completely. Hope this helps you https://in.mathworks.com/matlabcentral/answers/358844-spatial-correlation-between-two-variables
jean claude
jean claude 2017년 12월 2일
i think the output is a square matrix 2*2, if you want to select the correlation value you can have coeff=output(2,1) , is that what you want ?
ANKUR KUMAR
ANKUR KUMAR 2017년 12월 2일
Use corr2(a,b) to get directly the correlation value.
jean claude
jean claude 2017년 12월 2일
i didn't know it exists cool so i think the problem is solved

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

질문:

2017년 8월 2일

댓글:

2017년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by