Dear Andra and Gillaume,
I once wrote a tiny script which enables running different versions of
spm concurrently.
With the hint by Guillaume, I revised the script a little bit.
Save the following two scripts as spm8.m and spm5.m in some directory
(e.g. My Documents\MATLAB\), and you will be able to run spm5 and spm8
concurrently by typing "spm8" or "spm5".
%%%%%%%%%%%%%%% spm8.m
% try to close spm, remove other spm path and clear variables
try
spm quit;
clear all;
spm_rmpath;
end
addpath c:\spm\spm8\;
spm;
%%%%%%%%%%%%%%% spm5.m
% try to close spm, remove other spm path and clear variables
try
spm quit;
clear all;
spm_rmpath;
end
addpath c:\spm\spm5\;
spm;
Guillaume, we can also apply this script to spm2 if I put the
spm_rmpath.m file into spm2 folder. Is it coorect?
Hope this helps,
Kiyotaka
2009/5/6 Andra Smith <[log in to unmask]>:
> Is it possible to run both versions of SPM on the same computer?
> Thanks.
>
>
> __________________________________________________________________
> The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
>
--
Kiyotaka Nemoto, M.D.
Department of Psychiatry
Graduate School of Comprehensive Human Sciences
University of Tsukuba
1-1-1Tennodai Tsukuba, Ibaraki 305-8575, Japan
E-mail: [log in to unmask]
|