how to find correlation of a row with all the other rows of a matrix ?

19 次查看(过去 30 天)
Hello guys,
i am stuck at a problem.. i have 30000x8 matrix.. i want to find correlation coefficient of each row in the matrix with all the other rows in the matrix. for Ex- third row correlation with all its previous as well as succeeding rows.. how can i achieve this?.. please help.
Thank You in Advance

采纳的回答

Bruno Luong
Bruno Luong 2022-10-7
编辑:Bruno Luong 2022-10-7
If you have the right toolbox, use https://fr.mathworks.com/help/stats/corr.html
  5 个评论
Bruno Luong
Bruno Luong 2022-10-7
C = corrcoef(A.')
C(i,j) provides you the correlation between row i and row j of A.
C(i,:) is the correlation of row i to all other rows.
You need 7 Gb of RAM to store C if your A matrix is 30000 x 8.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by