This problem is one I reported on in May 2003. I don't know the relevant
weblink but Jesper's response was as follows
> There are a few functions in the Matlab Signal Processing Toolbox, that are
> called ss. These may be the cause of this warning. Something to do with
> Windows getting confused between upper- and lower-case. Type the following
> in Matlab to see where the source of the problem is:
>
> which SS
>
Sorry, I thought I had fixed this one. John is right, it is a conflict
between a
variable name in spm_uw_estimate and a function name in the signal processing
toolbox which appears only in Windows (that seems to be more lax w.r.t. case).
I'll make a patch of it.
-------------------------------------
Perhaps Jesper has patched the function??
Darren
At 12:16 PM 7/22/2003 +0000, John Ashburner wrote:
> > after starting working with SPM2 I have some problems with the unwarp +
> > realignement section,
> > I always get the error message:
> >
> > SPM2: spm_realign_ui (v2.10) 14:06:30 - 21/07/2003
> > ========================================================================
> > procedure terminated abnormally:
> > Error using ==> >
> > Function '>' not defined for variables of class 'ss'.??? Reference to
> > non-existent field 'beta'.
> >
> > Error in ==> d:\spm2\spm2\spm_uw_apply.m
> > On line 181 ==> def_array =
> > zeros(prod(ds(s).P(1).dim(1:3)),size(ds(s).beta,2));
> >
> > Error in ==> d:\spm2\spm2\spm_realign_ui.m (run_ui)
> > On line 547 ==> spm_uw_apply(ads,uwr_flags);
> >
> > Error in ==> d:\spm2\spm2\spm_realign_ui.m
> > On line 320 ==> run_ui(defaults.realign, defaults.modality,
> > defaults.unwarp);
> >
> > ??? Error while evaluating uicontrol Callback.
> >
> >
> > does anybody knows what to do?
> >
> > I also noticed, that the voxel size, using the display button is
> > becoming negative??!!!! When using for example MRICRO, this is not the
> > case, but I am not sure, if these two problems are linked to each other....
>
>The problems are not related.
>
>The -ve voxel sizes should be answered by the following:
>http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0304&L=spm&P=R12370&I=-1
>http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0303&L=spm&P=R34987&I=-1
>http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0301&L=spm&P=R27184&I=-1
>
>The unwarping question is rather harder to answer. The key part of the
>message is: "Function '>' not defined for variables of class 'ss'.", but
>we don't get the full error message because the error happened during a
>try/catch block. I guess that the error is due to:
>
> if iter > 1 & yty > SS(iter-1)
>
>This probably works fine for most people, as SS is defined before it is
>used. I am guessing that you have a class defined called ss or SS. Try
>inserting the following around line 312 of spm_uw_estimate.m:
>
>SS = [];
>
>This may fix the problem.
>
>Best regards,
>-John
>
>--
>Dr John Ashburner.
>Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
>tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
>fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
-------------------------------------------------------------------------
Darren R. Gitelman, M.D.
Cognitive Neurology and Alzheimer¹s Disease Center
Northwestern Univ., 320 E. Superior St., Searle 11-470, Chicago, IL 60611
Voice: (312) 908-9023 Fax: (312) 908-8789
-------------------------------------------------------------------------
|