How to calculate random Correlation Pairs

4 visualizaciones (últimos 30 días)
Iugo
Iugo el 13 de Oct. de 2020
Comentada: Iugo el 14 de Oct. de 2020
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

Respuestas (1)

Jeff Miller
Jeff Miller el 13 de Oct. de 2020
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 comentario
Iugo
Iugo el 14 de Oct. de 2020
Thanks for the ideia!
But I really wanted to calculate the correlation with corrcoef between 2 input arguments (vectors and the time series).

Iniciar sesión para comentar.

Categorías

Más información sobre 3-D Volumetric Image Processing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by