Hi Guillaume,
Thank you for your response. They weren't created with different versions
of SPM but one might have been created in the GUI rather than with a
script.
Here is the DCM mold. There aren't different fields per se but some of the
fields have different values. Could this be it?
DCM.xY(1)
ans =
name: 'aim1_2'
Ic: 37
Sess: 1
xyz: [3x1 double]
def: 'mask'
spec: [1x1 struct]
str: 'image mask: ./VOI\_aim1\_2\_pag\_r1\_mask.nii'
XYZmm: [3x4 double]
X0: [162x6 double]
y: [162x4 double]
u: [162x1 double]
v: [4x1 double]
s: [4x1 double]
And the VOI for a new subject:
>> load('VOI_aim1_2.mat')
>> xY
xY =
xyz: [3x1 double]
name: 'aim1_2_pag_r2'
Ic: 38
Sess: 2
def: 'sphere'
spec: 6
str: '6.0mm sphere'
XYZmm: [3x4 double]
X0: [162x6 double]
y: [162x4 double]
u: [162x1 double]
v: [4x1 double]
s: [4x1 double]
On 4/2/15 3:10 PM, "Guillaume Flandin" <[log in to unmask]> wrote:
>Hi Drew,
>
>would it be possible that you created the VOI.mat files with different
>versions of SPM? To get a better feel of what is going on, look at the
>fields of the xY structure stored in VOI.mat files:
>>> load VOI_1.mat
>>> xY
>>> load VOI_2.mat
>>> xY
>If there is an extra field in some of the files, (let me know what that
>field is and) just remove it beforehand:
>>> xY = rmfield(xY,'extra_field');
>>> save VOI_x.mat xY -v6
>
>Best regards,
>Guillaume.
>
>
>On 02/04/15 18:46, Sevel,Landrew S wrote:
>> Hi all,
>>
>> I'm receiving an error in specifying individual DCMs from a generic
>> model for only certain subjects using spm_dcm_voi:
>>
>> Subscripted assignment between dissimilar structures.
>>
>> Error in spm_dcm_voi (line 53)
>> DCM.xY(i) = xY;
>>
>> Does anyone have any tips for fixing this?
>>
>> Thanks,
>>
>> Drew
>
>--
>Guillaume Flandin, PhD
>Wellcome Trust Centre for Neuroimaging
>University College London
>12 Queen Square
>London WC1N 3BG
|