How to calculate random Correlation Pairs

조회 수: 4 (최근 30일)
Iugo
Iugo 2020년 10월 13일
댓글: Iugo 2020년 10월 14일
Hello everyone!
I'm working with resting-state fMRI data and I want to calculate the correlation, with corrcoef, between each pair of voxels one by one, using 2 input arguments (R = corrcoef(A,B)). My question is this: I know how to compare a specific voxel with the rest but I'm struggling in how to compare the correlation between random (or all the combinations possible) voxels.
Can somebody give me a hand on this?
Thanks in advance,
Hugo

답변 (1개)

Jeff Miller
Jeff Miller 2020년 10월 13일
Make a matrix A with one column for each voxel, and then use
cormatrix = corrcoef(A)
The output will be the correlations for all pairs of voxels.
  댓글 수: 1
Iugo
Iugo 2020년 10월 14일
Thanks for the ideia!
But I really wanted to calculate the correlation with corrcoef between 2 input arguments (vectors and the time series).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by