Hi,
I made the ROI using FSL now (as per Jens's suggestion), and still end up with the same error message above.
Opening the mask and dataset gives different dimensions in .a.fdim. My data was preprocessed in SPM and normalized to MNI space. What I load here is single subject con file from SPM.
As per Raffaele's suggestion I could " overlap the ROI on your functional data to be sure they are in the same space (and where you would expect the ROI to be)". How can I do that?
Thanks in advance for your help.
The following is the structure using cosmo_disp::
>> cosmo_disp(ds_mask)
.a
.vol
.mat
[ -1 0 0 91
0 1 0 -127
0 0 1 -73
0 0 0 1 ]
.xform
'mni_152'
.dim
[ 182 218 182 ]
.fdim
.labels
{ 'i'
'j'
'k' }
.values
{ [ 1 2 3 ... 180 181 182 ]@1x182
[ 1 2 3 ... 216 217 218 ]@1x218
[ 1 2 3 ... 180 181 182 ]@1x182 }
.sa
struct (empty)
.samples
[ 0 0 0 ... 0 0 0 ]@1x7221032
.fa
.i
[ 1 2 3 ... 180 181 182 ]@1x7221032
.j
[ 1 1 1 ... 218 218 218 ]@1x7221032
.k
[ 1 1 1 ... 182 182 182 ]@1x7221032
cosmo_disp(ds1).a
.vol
.dim
[ 73 87 73 ]
.mat
[ -2.5 0 0 92.5
0 2.5 0 -128
0 0 2.5 -74.5
0 0 0 1 ]
.fdim
.labels
{ 'i'
'j'
'k' }
.values
{ [ 1 2 3 ... 71 72 73 ]@1x73
[ 1 2 3 ... 85 86 87 ]@1x87
[ 1 2 3 ... 71 72 73 ]@1x73 }
.sa
.labels
{ 'Rhyming1vsControl'
'Rhyming2vsControl'
'Rhyming3vsControl'
:
'Semantic6vsControl'
'Semantic7vsControl'
'Semantic8vsControl' }@16x1
.fname
{ '/Volume ... 001.nii'
'/Volume ... 002.nii'
'/Volume ... 003.nii'
:
'/Volume ... 014.nii'
'/Volume ... 015.nii'
'/Volume ... 016.nii' }@16x1
.samples
[ NaN NaN NaN ... NaN NaN NaN
NaN NaN NaN ... NaN NaN NaN
NaN NaN NaN ... NaN NaN NaN
: : : : : :
NaN NaN NaN ... NaN NaN NaN
NaN NaN NaN ... NaN NaN NaN
NaN NaN NaN ... NaN NaN NaN ]@16x463623
.fa
.i
[ 1 2 3 ... 71 72 73 ]@1x463623
.j
[ 1 1 1 ... 87 87 87 ]@1x463623
.k
[ 1 1 1 ... 73 73 73 ]@1x463623