Oliver:
It sounds like there may be a function interfering with SPM resulting in the recursive calls. Try
starting matlab and typing which spm
If matlab finds a file called spm (before you actually add the spm path) then perhaps you either
have some other spm installation or this is a file that you or someone else made to call the actual
spm.m file but it results in both spm.m files being called recursively.
As far as the permanence of the path- first check the issues above. Matlab does not save paths you
add unless you tell it explicitly to do so either by using the pathtool and clicking save or by
using the savepath command.
hope this helps,
darren
==============Original message text===============
On Thu, 14 Dec 2006 10:09:30 am CST Olivier Salvado wrote:
Hello,
This is probably a dumb problem but I cannot figure it out, and I could not
find anything in the mailing list archive which makes me feel even more like
an idiot.
I struggle installing SPM on Windows XP, Matlab 2006b. I copied all the SPM
files into a SPM folder, including the latest update (665).
1) when I prepend the SPM folder to the matlab path, and I type SPM at the
matlab prompt, it goes through a recursion spree until it reaches 500
iterations and stops with an error (see below). Of course SPM is broken and
when I close and open Matlab again the SPM folder has been mysteriously
removed from the path.
>> spm
Warning: File: spm.m Line: 337 Column: 18
The expression on this line will generate an error when executed. The error
will be: Maximum recursion limit of 500 reached. Use
set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Warning: File: spm.m Line: 345 Column: 34
The expression on this line will generate an error when executed. The error
will be: Maximum recursion limit of 500 reached. Use
set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Warning: File: spm.m Line: 352 Column: 18
....
...
...
The expression on this line will generate an error when executed. The error
will be: Maximum recursion limit of 500 reached. Use
set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
> In spm at 313
??? Error using ==> spm_defaults
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Error in ==> spm at 313
spm_defaults;
>>
2) if I go inside the SPM folder, I get a window warning me that some of the
files use Matlab function name. If I try to start SPM from its folder I get
a list of warnings and the same error as in 1)
Can someone clue me?
Olivier Salvado
Case Western Reserve University.
===========End of original message text===========
--------------------------------
Darren R. Gitelman, M.D.
Department of Neurology
Northwestern Univ., 320 E. Superior St., Searle 11-470, Chicago, IL 60611
Voice: (312) 908-9023 Fax: (312) 908-8789
--------------------------------
|