How to calculate random Correlation Pairs
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File 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!