Dear Chunhong Shao,
if you do have two factors with two levels each, then you don't have
levels 1..4, but instead levels (1,1), (1,2), (2,1), (2,2). I.e. the
levels you specify for your cells should indicate which level of each
factor this cell belongs to.
Hope this helps,
Volkmar
On Sun, 26 Aug 2007, Chunhong Shao wrote:
> Dear SPM users,
>
> I performed a second-level full factoral design, 2 factors and each with 2
> levels. So, I had totally 4 cells. I specified that level was 1, 2, 3, 4
> respectively and with corresponding scans. Then gave a directory. But when I hit
> run, it gave me the error message below.
> --------------------------
> Running "Factorial design specification"
> Error running job:
> Attempted to access levs(2); index out of bounds because numel(levs)=1.
> In file "/usr/local/spm5/spm_set_factorial_design.m", function
> "spm_set_factorial_design" at line 54.
> In file "/usr/local/spm5/spm_config_factorial_design.m", function "run_stats" at
> line 1079.
> In file "/usr/local/spm5/spm_jobman.m", function "run_struct1" at line 1540.
> In file "/usr/local/spm5/spm_jobman.m", function "run_struct1" at line 1548.
> In file "/usr/local/spm5/spm_jobman.m", function "run_struct1" at line 1548.
> In file "/usr/local/spm5/spm_jobman.m", function "run_struct" at line 1492.
> ??? Attempted to access levs(2); index out of bounds because numel(levs)=1.
>
> ??? Error while evaluating uicontrol Callback
>
>
> Could anyone help me out? Any comment and suggestion will be very appericated!
>
> Regards,
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|