I found the problem, I knew it was stupid. Thanks Darren for the clues.
For the record in case it could save someone's time:
I unzipped the SPM files with WinZip using the mouse with select all + drag
& drop into a SPM folder. As a result, no directory structures were created
and all the files ended up under SPM\. Thus the whole mess with Matlab
because all the overloaded functions were visible by Matlab all the times.
Correct way is of course to use the command extract with the option checked
to preserve the directory structures...
Duh!
Olivier.
__________________________________________________
Olivier Salvado, PhD
Case Western Reserve University | Case Center for Imaging Research
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
Behalf Of Darren G
Sent: Thursday, December 14, 2006 15:09
To: [log in to unmask]
Subject: Re: [SPM] problem installing SPM5...
Hmm. Although there is a save.m function in the @xmltree folder, matlab
should not be seeing it unless you have already loaded spm, have cd'd to the
spm5 folder in matlab, or have the @xmltree directory (mistakenly) in the
matlabpath.
You should make sure that the matlab path has not been corrupted, and that
it includes all the standard matlab toolbox directories. I'm assuming matlab
run's ok, if you don't try to use spm?
Also, you should search the spm directories and make sure you don't have
more than one copy of the spm.m file or that somehow and copy of the spm5
installation has not been placed within another
spm5 installation. It really sounds like there is more than one spm.m file
that matlab is seeing, and possibly there are some errors in the matlab
path. You should not be adding any of the directories within the spm5 folder
to the matlab path directly.
Darren
==============Original message text=============== On Thu, 14 Dec 2006
1:16:48 pm CST Olivier Salvado wrote:
Darren,
Thanks for the suggestions.
There is no spm.m before I add the spm folder to the path.
After the folder is added to the path, the correct spm.m is recognized.
After I add the spm folder to the matlab path, I do save it. However the new
added folder properly disappeared when my matlab breaks down after I start
spm and restart Matlab. If I add the folder, quite matlab and come back it
disappears also (I can add any other folders without problem).
After I start spm and gets this error below upon the recursive explosion, my
matlab is really messed up. For example it cries when I move my cursor over
a simple plot with all sorts of bad words. It seems that the bunch of spm
functions that use existing matlab function names are messing up the regular
Matlab bahavior. I quite don't understand how one can install the spm folder
in the path and still use the regular save matlab command while such a
function is overloaded by the save.m in the spm folder at the beginning of
the path.
I am really puzzled, it must be something wrong with my computer setup since
I seem to be the only one with this problem. I have used a bit spm2 on my
old computer and now I would like to use this new version on my new computer
and I am very frustrated. I guess I can try to install spm2 on my computer,
and try to install spm5 on a different computer.
Olivier
__________________________________________________
Olivier Salvado, PhD
Case Western Reserve University | Case Center for Imaging Research
University Hospitals of Cleveland | Department of Radiology | Wearn B49
11100 Euclid Av. | Cleveland, OH 44106 | Ph. (216) 983 3426
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
Behalf Of Darren G
Sent: Thursday, December 14, 2006 13:47
To: [log in to unmask]
Subject: Re: [SPM] problem installing SPM5...
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
--------------------------------
===========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
--------------------------------
|