Hi,
I'm trying do SPM in Batch. A piece of code was as below:
condName = {'AAvBB','BBvCC','CCvAA'};
condM{1} = [1 0 -1 0 0 0 0 0];
condM{2} = [1 0 0 0 -1 0 0 0];
condM{3} = [0 0 1 0 -1 0 0 0];
for ii=1:ncond %%here ncond=3, pre-defined
SPM.xCon(end + 1) =
spm_FcUtil('Set',condName{ii},'T','c',condM{ii},SPM.xX.xKXs);
end
It produce eeror as:
??? Error using ==> spm_FcUtil
not contrast dim. in spm_FcUtil c
can anyone help to tell me why?
Thanks a lot!
|