correlation

조회 수: 3 (최근 30일)
huda nawaf
huda nawaf 2011년 9월 2일
hi, how I can find the correlation of an array?
I found corr, but it is find correlation between each two columns . how I can find the correlation between rows.
are there command find the correlation among more than two rows?
thanks

답변 (2개)

Paulo Silva
Paulo Silva 2011년 9월 2일
maybe using corr on the transposed array?!
  댓글 수: 1
Niki
Niki 2011년 9월 2일
I think you can transpose your matrix like this
for example you have a Matrix >>X=rand(10) then >>X=X';
and then perform "corr" or "corrcoef"
like >>[R]=corrcoef (X);

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


huda nawaf
huda nawaf 2011년 9월 2일
hi, thanks, but I don't know why used rand . for what? please, be more clear
thanks
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 9월 2일
Rand is just an example, just transpose your matrix.

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

카테고리

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