Hi,
your contrast vectors have to be specified as colomn vectors and not as row
vectors (and the length must be size(SPM.xX.X,2)).
Thilo
On Friday 12 November 2004 03:09, peng wrote:
> 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!
|