how to find correlation of a row with all the other rows of a matrix ?
17 ビュー (過去 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
0 件のコメント
採用された回答
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
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 Center および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!