Hi Sophie,
> I have SPM2 installed and it runs like lightening on my WinXP (matlab 6.5)
Congrats :)
> I have also installed SPM5 but have problems activating it, I have to go into
> the SPM5 directory and then run it from there, then SPM5 isn't happy accessing
> my files, doesn't like running from results directories etc....
That is because it does not find necessary files. In order for it to do
so you should add the spm5-directory to the Matlab-path (you can use
addpath, or, if you're lazy like me, the GUI: Edit, set Path...). The
problem is that now, spm2 will be unhappy :(
> I'm thinking of purchasing Matlab 7.0 and putting SPM5 under that version, just
> to keep them separate.
>
> Is this a good idea?
Well, you could do that, but it is much easier if you just do the following:
remove all spm-traces from the path
save (to pathdef.m)
make a copy of this file (back.m or so)
add spm5 with subdirectories to the path
save (to pathdef.m)
make a copy of this file and call it path5.m (or so)
Quit Matlab
rename back.m to pathdef.m
Restart Matlab
add spm2 with subdirectories to the path
save (to pathdef.m)
make a copy of this file and call it path2.m (or so)
Now you have two separate path definitions for each version, and if you
then use a batch file each for starting Matlab as the one below, you
will be happy ever after (or at least your spm-versions will :)
Best,
Marko
- Begin batch file
@ECHO OFF
echo.
echo Starting SPM2...
echo.
IF EXIST C:\Util\Matlab\toolbox\local\pathdef.m del /q
C:\Util\Matlab\toolbox\local\pathdef.m
COPY C:\Util\Matlab\toolbox\local\path2.m
C:\Util\Matlab\toolbox\local\pathdef.m
C:
cd..
cd..
cd..
cd Util
cd Matlab
cd work
rem This also starts Matlab with below normal priority and diables Java
start /BELOWNORMAL C:\Util\Matlab\bin\win32\matlab.exe -nojvm
exit /B
exit
- End batch file
> ps. The SPM5 manual is one of the most beautiful things I've ever seen!!!!
PS: If this is true you should definitely spend less time in the lab :)
--
=====================================================================
Marko Wilke (Dr.med./M.D.)
[log in to unmask]
Universitäts-Kinderklinik University Children's Hospital
Abt. III (Neuropädiatrie) Dept. III (Pediatric neurology)
Hoppe-Seyler-Str. 1, D - 72076 Tübingen
Tel.: (+49) 07071 29-83416 Fax: (+49) 07071 29-5473
=====================================================================
|