Sorry about that. I hadn't finished my composing my email, but must have
pressed the wrong button somewhere.....
| I have recently purchased MATLAB 5.3.1 to run on my Sun Ultra 30 with
| the intention of ultimately running SPM99.
|
| I have already downloaded and unpacked the SPM99 software, and
| I need some guidance regarding its installation. That is, in terms of
| any compilation to be done, linkage to the MATLAB path and any other
| relevant information that may be of some use.
Getting SPM99 started on a Sun is the easiest bit. Because SPM99 was
developed on Suns, the distribution already contains compiled mex files,
so you do not need to recompile anything.
One thing I can recommend that you do is pick up the fixes that we have
made since the release. These can be obtained from:
ftp://ftp.fil.ion.ucl.ac.uk/spm/spm99_updates/
The fixes are all bundled into:
ftp://ftp.fil.ion.ucl.ac.uk/spm/spm99_updates/spm99_updates_000331.tar.gz
and can be unpacked by:
gzcat spm99_updates_000331.tar.gz | tar xvf -
Matlab normally finds SPM from an environmental variable called MATLABPATH.
If you normally use a C-shell, then you can set this variable by editing
your .cshrc file to include the following lines (where
"directory_spm99_installed_spm99_in" is replaced by the name of the directory
that SPM99 has been installed in):
if (! $?MATLABPATH) then
setenv MATLABPATH directory_spm99_installed_spm99_in
else
setenv MATLABPATH {$MATLABPATH}:directory_spm99_installed_spm99_in
endif
If you use a Bourne shell (which I am not as familiar with), then you can include
something like:
MATLABPATH=directory_spm99_installed_spm99_in
export MATLABPATH
Alternatively, the path can be set up within Matlab itself. This can be done by
creating or modifying a file called ~/matlab/startup.m so that it contains the
lines:
path(path,directory_spm99_installed_spm99_in);
The startup.m file simply contains the matlab commands that should be executed when
you start matlab.
Anyway, once you have started matlab, all you need to do is type the following at
the >> prompt:
spm
Best of luck,
-John
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|