> 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
|