Finding the pearson correlation coefficient
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have an array A which is a 139x120 double and an array B which is a 1x120 double. For each row of A, I want to find the Pearson correlation coefficient for the i th column of A with the i th column of B, ending up with an array that is 139x120. There are no NaN values in any of my arrays. I have tried using corr, but have been unable to get what I want. How do I go about doing this?
Thank you in advance.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!