Importing matrix from Matlab and projecting it onto surface

Hello,

I have done the following:
I have exported the 15002x2 matrix of a voxel-by-voxel Evoked Power Spectrum for each subject (calculated with a dedicated set of functions for Brainstorm that are not default) into Matlab. I have then correlated the EPS at each voxel with a value I get from a separate behavioral task for each participant. I now have a matrix (15002x1) of correlation values.

My question:
I want to import back into Brainstorm this new matrix of values and visualize it on the Group Brain Surface. Basically I want to have a brain surface with a heat-map that shows the strength of the correlation at each voxel. Is this possible?

Thank you,
Irene

Hi Irene,

Yes, it is possible. The simplest way would be to edit a source file the Group analysis

  1. Create a source file for the Group analysis subject
  2. Then export the file to Matlab (right-click > File > Export to Matlab) to a variable X
  3. Set you data in the field ImageGridAmp, repeat the column to be [15002, 2]
  4. Import the variable X to the source file (right-click > File > Import from Matlab)

One thing that you need to pay attention, is the fact that all subjects are using the same anatomy.
If you analysis for each subject is based on their individual anatomy, you must first project the EPS to the Default anatomy so they are in the same space.

Thank you!
It all worked fine to point 4. When I try to open the imported matrix I get the following error:

You need to modify the field Time, if two columns are provided in ImageGridAmp, just set the Time field to [0,1]. If you still have issues, please post the content of the modified file (right-click > File > View file contents)

That solved the problem, thank you very much!