Hi,
I recently tried to use the Factorial Design option with fMRI Model
specification to automatically create the f-contrasts necessary for the
appropriate first and second level analysis. The specification and
estimation of the model worked fine but when SPM5 tried to automatically
create the contrasts I received the following message: "Improper matrix
reference" which was an error in spm_design_contrasts line 83
I looked around in spm_design_contrasts and found the for loop:
for s=2:nsess
con = [c1 con(c).c zeros(1,covs(s))];
end
It looks like a normal array is created with the same name as a structural
array that is then called again in the for loop, and I think that is where
the problem is coming from.
From the rest of the code it seems like one just needs to change the
parentheses but I do not really want to mess around with the spm programs
without posing the problem here first.
Has anyone else had this problem or is it possible to fix it?
Thanks,
Virginia
|