Correlation Matrix of a 1x1 Structure

2 ビュー (過去 30 日間)
Amirhossein Rahimi
Amirhossein Rahimi 2017 年 12 月 6 日
回答済み: jean claude 2017 年 12 月 6 日
Hello everybody, I have a 1x1 data structure which contains 144 fields (i.e. each field is a 26048x1 vector (double)). I need to find the correlation matrix of this data set (showing the correlation between vectors) and at the end, i need to plot it like the figure below:
be thankful for any idea!
Thanks

回答 (1 件)

jean claude
jean claude 2017 年 12 月 6 日
first step you have to construct the big matrix then compute the correlation:
X=struct2array(here type your structure title) % data
y=corrcoef(X) % correlation matrix

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by