Effacer les filtres
Effacer les filtres

How do I find the correlation coefficient between two vector arrays?

253 vues (au cours des 30 derniers jours)
Lakyn
Lakyn le 23 Août 2016
Commenté : Jeff Miller le 19 Juil 2018
Hi guys, I transformed 2 matrices into vector arrays, so like each vector has 1 column and 2850 rows. How do I find the correlation coefficient between the two vector arrays?
I tried to use corrcoef, but I don't think it works in this case yes?
Thank you!

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 23 Août 2016
Modifié(e) : Andrei Bobrov le 23 Août 2016
R = corrcoef(A,B)
Please read about corrcoef.
  3 commentaires
farah arabian
farah arabian le 19 Juil 2018
I also have the same question, I have two column vectors, When I use corrcoef it gives me 1 but when I use xcov it give me a logical answer, which one is correct?
Jeff Miller
Jeff Miller le 19 Juil 2018
What does this figure look like?
scatter(A,B);

Connectez-vous pour commenter.

Catégories

En savoir plus sur Descriptive Statistics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by