フィルターのクリア

correlation matrix from pairwise correlations of matrices

8 ビュー (過去 30 日間)
OH
OH 2016 年 8 月 23 日
回答済み: OH 2016 年 8 月 23 日
Hi, I have a set of n-by-n matrices and I would like to do pairwise correlations of all matrices and to get a correlation matrix containing persons r for all pairwise correlations as output. Is there a fast way to do the pairwise correlations for all possible pairs? I was thinking of a for-loop, but I am not sure how to write it.
Thanks

採用された回答

Thorsten
Thorsten 2016 年 8 月 23 日
Convert each matrix to a column vector of X, using (:), and then run
corrcoef(X)

その他の回答 (1 件)

OH
OH 2016 年 8 月 23 日
Thanks!

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by