Dear Jeong:
This is a known conflict between a variable name in spm_uw_estimate- SS and
a function call in another matlab toolbox. I vaguely recollect it might be
the control system toolbox. You can search the email list if you want. So
there are a couple ways to deal with this
1) Type which ss at the matlab prompt. If a directory name comes up just
remove that directory from your matlab path and then run spm2. For example:
» which ss
C:\MATLAB6p5p1\toolbox\control\control\@ss\ss.m % ss method
% do not include @ss in path component it is a private directory.
» rmpath('C:\MATLAB6p5p1\toolbox\control\control')
2) Try the attached file. I have changed the variable name SS to SS1. This
should work but I haven't tested it and cannot verify the results.
Jesper- did you ever fix this?
Darren
At 04:52 PM 12/9/2003, bs jeong wrote:
>During realign & unwarp in spm2 on matlab, matlat said error message like
>below.
>what's mean & how i have to do?
>
>
>Warning: File: D:\MatLab6p5\toolbox\spm2\spm_uw_estimate.m Line: 335
>Column: 7
>Variable 'SS' has been previously used as a function name.
>(Type "warning off MATLAB:mir_warning_variable_used_as_function" to
>suppress this warning.)
> > In D:\MatLab6p5\toolbox\spm2\spm_realign_ui.m (run_ui) at line 541
> In D:\MatLab6p5\toolbox\spm2\spm_realign_ui.m at line 320
>procedure terminated abnormally:
>Error using ==> >
>Function '>' is not defined for values of class 'ss'.??? Reference to non-
>existent field 'beta'.
>
>Error in ==> D:\MatLab6p5\toolbox\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:\MatLab6p5\toolbox\spm2\spm_realign_ui.m (run_ui)
>On line 547 ==> spm_uw_apply(ads,uwr_flags);
>
>Error in ==> D:\MatLab6p5\toolbox\spm2\spm_realign_ui.m
>On line 320 ==> run_ui(defaults.realign, defaults.modality,
>defaults.unwarp);
>
>??? Error while evaluating uicontrol Callback.
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
|