How to find the correlation between 14 subjects

조회 수: 2 (최근 30일)
Neda Deljavan
Neda Deljavan 2022년 10월 10일
댓글: Benjamin Thompson 2022년 10월 17일
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.

답변 (1개)

Benjamin Thompson
Benjamin Thompson 2022년 10월 10일
xcorr2 is the MATLAB function for 2D cross correlation
  댓글 수: 6
Neda Deljavan
Neda Deljavan 2022년 10월 12일
편집: Neda Deljavan 2022년 10월 12일
The main question is that, How can I find the correlation between 14 subjects (each subject has 4channels as columns of matrix)?
In fact, I want "A matrix" that includes correlation between 14 subjects.
Benjamin Thompson
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 CenterFile Exchange에서 Filter Banks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by