Hello Freesurfer Experts,

I am performing a mass-univariate analyses using the LME toolbox for longitudinal studies.

After running both mris_preproc  and mri_surf2surf , I load the lh.thickness_sm10.mgh file using  

[Y,mri] = fs_read_Y('lh.thickness_sm10.mgh');

Next, I run the following command:

Qdec = fReadQdec('qdec.table.dat');

However, it seems that the output is entirely in string format "166 x 1 cell". The first row reads as "'fsid fsid-base years group gender age'" in a single column.

Because of this, I am running into problems when I try to execute the following steps:

Qdec = rmQdecCol(Qdec,1); (removes first column)

sID = Qdec(2:end,1); (grabs the subjects' IDs)

Qdec = rmQdecCol(Qdec,1); (removes the subjects'ID column)

M = Qdec2num(Qdec); (converts to a numeric matrix)

[M,Y,ni] = sortData(M,1,Y,sID); (sorts the data)

Your help will be greatly appreciated!

Many thanks.

Best Regards,

Elijah



--

Elijah Mak, Gates Scholar

PhD Candidate | Psychiatry

University of Cambridge

Trinity College, Cambridge, CB2 1TQ