Thanks John and Volkmar for your help,
setting the defaults effectively fixed one error, but I still have,
during the model estimation, another bug (see below):
It is probably due to the way I build my SPM.mat (using a matlab script
to define the jobs I want), but I can't find the bug..
If you have another idea..
Thanks again
Jerome
SPM: spm_spm (v$Rev: 649 $) 12:16:27 - 23/02/2007
========================================================================
Initialising parameters : ...done
Output images :
...initialising??? Erro r using ==> feval
Undefined command/function 'offset'.
Error in ==> file_array.subsasgn>asgn at 144
obj = feval(fun,obj,dat);
Error in ==> file_array.subsasgn at 22
case 'offset', obj = asgn(obj,@offset, subs(2:end),dat);
%offset(o bj,dat);
Error in ==> nifti.subsasgn>assigndat at 361
val.offset = max(sval.offset,0);
Error in ==> nifti.subsasgn>fun at 76
obj = assigndat(obj,val);
Error in ==> nifti.subsasgn at 20
obji = fun(obji,subs,val);
Error in ==> spm_create_vol>create_vol at 78
N.dat = dat;
Error in ==> spm_create_vol at 16
v = create_vol(V(i));
Error in ==> spm_spm at 524
VM = spm_create_vol(VM);
Error in ==> spm_spm at 881
SPM = spm_spm(SPM);
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});
Error in ==> specify_model_perso_JR at 132
spm_jobman ('run', jobs)
Ashburner John (PSYCHOLOGY) a écrit :
> Before doing anything else, it is usually a good idea to run the following first:
> spm_defaults
>
> This will load all the default settings (such as defaults.stats.maxres).
>
> Best regards,
> -John
>
>
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Jérôme Redouté
> Sent: Thursday, February 22, 2007 6:06 PM
> To: [log in to unmask]
> Subject: [SPM] model estimation error with SPM5
>
> Dear SPMers,
> I try to estimate a model (SPM.mat was previously built from a matlab
> script) using spm_jobman, and I get the following error messages:
>
>
> >> spm_jobman('run','estimate.mat')
> --------------------------
> Running "Model estimation"
> SPM: spm_spm (v$Rev: 649 $) 17:58:08 - 22/02/2007
> ========================================================================
> Initialising parameters :
> ...computing??? Reference to non-existent field 'stats'.
> Error in ==> spm_spm at 498
> MAXRES = defaults.stats.maxres;
> 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});
>
>
> Sometimes, I also have this error: Undefined command/function 'offset'.
>
>
> If I use the interactive batch mode. There is no problem.
> Is someone have an idea?
> Thanks for your help
> Jerome
>
>
>
>
--
---------------------------------
Jerome Redouté, Ph. D.
Centre de Neuroscience Cognitive
CNRS-UMR 5229
67, Bd. Pinel. 69675 Bron
Tel: 04 37 91 12 44
[log in to unmask]
---------------------------------
|