How to find the correlation between 14 subjects
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I want to find the correlation between the 14 subjects that each subjects has 4 channels (columns). I wrote its code. But I do not know it is correct or not. The main problem for me is that "how can I find the correlation between 14 subjects". I mean I want to find the first square for subject1 which is shown in the figure below, then upto subject12.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1151370/image.png)
0 件のコメント
回答 (1 件)
Benjamin Thompson
2022 年 10 月 10 日
xcorr2 is the MATLAB function for 2D cross correlation
6 件のコメント
Benjamin Thompson
2022 年 10 月 17 日
Maybe you could post the data for two or three subjects and the Community could help you extend your code to do that part of the problem? For the A matrix construction, are you expecting the size to be 14*4 or 14? You can create an empty A matrix to fill with results using the zeros function:
A = zeros(14,14);
参考
カテゴリ
Help Center および File Exchange で Measurements and Spatial Audio についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!