How to find Covariance matrix of 14 subjects

1 回表示 (過去 30 日間)
Neda Deljavan
Neda Deljavan 2023 年 1 月 19 日
コメント済み: Rik 2023 年 1 月 21 日
Hello every body,
I have found the covariance of one subject like the cod ebelow:
%% Covariance
cov_EC1 = cov(subs_P01EC1_alpha(:,:));
cov_EC1 = abs(cov_EC1 - diag(diag(cov_EC1)));
figure;
imagesc(cov_EC1);
axis square;
cb = colorbar;
cb.Label.String = 'Covariance level';
title('|Covariance, P01,EC1Active|')
ylabel('nodes');
xlabel('nodes')
Now, I want to find Covariance of 14 subjects in a matrix. How should I code this?
Thank you in advance for your help.
Neda
  3 件のコメント
Neda Deljavan
Neda Deljavan 2023 年 1 月 21 日
I want to have a average matrix of 14 subjects, how can I generalize it for 14 subjects?
Rik
Rik 2023 年 1 月 21 日
That is just rephrasing your original post. Do you expect me to rephrase my comment as well?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangePolygons についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by