correlation

3 visualizaciones (últimos 30 días)
huda nawaf
huda nawaf el 2 de Sept. de 2011
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

Respuestas (2)

Paulo Silva
Paulo Silva el 2 de Sept. de 2011
maybe using corr on the transposed array?!
  1 comentario
Niki
Niki el 2 de Sept. de 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);

Iniciar sesión para comentar.


huda nawaf
huda nawaf el 2 de Sept. de 2011
hi, thanks, but I don't know why used rand . for what? please, be more clear
thanks
  1 comentario
Oleg Komarov
Oleg Komarov el 2 de Sept. de 2011
Rand is just an example, just transpose your matrix.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by