correlation
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (2)
Paulo Silva
on 2 Sep 2011
maybe using corr on the transposed array?!
1 Comment
Niki
on 2 Sep 2011
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);
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!