Seppe
It looks like there is some issue with setting up globals. Perhaps you have
specified the flags wrong for the globals. SPM.xGX.rg is setup in
spm_config_factorial_design, which I guess you are attempting to bypass by
the script. Make sure it is setup correctly.
The larger issue, however, is that SPM will only execute the command
plot(SPM.xGX.rg) if there are no significant voxels in your analysis. I
don't know if that is due to your script or your analysis. I suggest trying
to setup the job using the SPM gui, running it and seeing if you get a
different answer. Also, based on the line numbers you provide it looks like
you are several updates out of date. You might consider updating your SPM
distribution.
darren
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping)
> [mailto:[log in to unmask]] On Behalf Of Seppe Santens
> Sent: Friday, June 27, 2008 10:35 AM
> To: [log in to unmask]
> Subject: [SPM] Problem with estimating second level model
>
> Dear list,
>
> I'm having the same problem as Judith My Lin Lam in the
> thread "Vectors must be the same lengths" started on 21 May
> 2007. However, in my situation, I'm trying to estimate a
> factorial design.
>
> When I run the job from the command line, I get the following
> error messages:
>
> >>>
>
> ??? Error using ==> plot
> Vectors must be the same lengths.
>
> Error in ==> spm_spm at 811
> plot(SPM.xGX.rg)
>
> Error in ==> spm_config_fmri_est>run_est at 390
> SPM = spm_spm(SPM);
>
> Error in ==> spm_jobman>run_struct1 at 1474
> feval(prog,val);
>
> Error in ==> spm_jobman>run_struct1 at 1482
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_struct1 at 1482
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_job at 417
> run_struct1(c);
>
> Error in ==> spm_jobman at 79
> run_job(varargin{2});
>
>
> <<<
>
> The script is in attachment.
>
> Sincerely,
>
> Seppe Santens
>
>
|