On Saturday 29 July 2006 07:44, Mohr, Christian wrote:
> No one responded on my email and question!
>
> Dear SPM experts,
> Setting up an F-contrast in the batch mode of SPM2 is not working proberly.
> Matlab issues the following error executing the following lines:
>
> %test Fcon
> % F-contrasts
> %--------------------------------------------------------------------------
>- iX0 = [zeros(10,10), eye(10), zeros(10,76), zeros(10,10),
> eye(10), zeros(10,76),zeros(10,10), eye(10), zeros(10,79)]; cname
> = 'Fcon test';
> SPM.xCon(end + 1) = spm_FcUtil('Set',cname,'F','iX0',iX0,SPM.xX.xKXs);
>
> % and evaluate
> %--------------------------------------------------------------------------
>- spm_contrasts(SPM);
>
With the fourth argument to spm_FcUtil ("iX0") you are telling SPM that you
want to test a subspace of the design matrix against the full model, which is
probably not what you want. Try:
cname = 'Fcon test
c = [zeros(10,10), eye(10), zeros(10,76), zeros(10,10)
SPM.xCon(end + 1) = spm_FcUtil('Set',cname,'F','c',c,SPM.xX.xKXs);
but of course the dimensions of the contrast (c) and the design matrix must
match.
Good luck,
Thilo
>
> Matlab error:
>
> ??? Error using ==> spm_sputil (sf_check_i0)
> logical mask or vector of column indices required
>
> Error in ==> D:\Mohr\spm2\spm_SpUtil.m
> On line 681 ==> varargout = {sf_check_i0(i0,sL)};
>
> Error in ==> D:\Mohr\spm2\spm_FcUtil.m
> On line 256 ==> iX0 = spm_SpUtil('iX0check',iX0,sL);
>
> Can somebody help this?
>
> Thanks a lot,
> Chris
>
>
>
> Christian Mohr
> Klinik für Neurologie
>
> Universitätsklinikum Schleswig-Holstein
> Campus Lübeck
> Ratzeburger Allee 160
> 23538 Lübeck
>
> Telefon: 0451-500-3709
> FAX: 0451-500-2489
> email1: [log in to unmask]
> email2: [log in to unmask]
--
Thilo Kellermann
Department of Psychiatry and Psychotherapy
RWTH Aachen University
Pauwelstr. 30
52074 Aachen
Tel.: +49 (0)241 / 8089977
Fax.: +49 (0)241 / 8082401
E-Mail: [log in to unmask]
|