correlation

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 日

0 投票

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 日

0 投票

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.

サインインしてコメントする。

タグ

質問済み:

2011 年 9 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by