Hi Katja Umla-Runge,
> I would like to use both SPM2 and SPM99 on one server. SPM2 runs well.
> If I delete the path to SPM2, change it to SPM99 and want to start it,
> the following error message is displayed:
>
> ??? Error: File: spm.m Line: 1286 Column: 30
> Unexpected MATLAB expression.
>
> Now I checked spm.m, this is line 1286:
>
> if nargin>=2, str = [str,': 'varargin{2}]; end
I think this is a typo in the code, which older versions of Matlab
were happy with, but newer versions are not. I believe you can fix
this line by adding a comma before varargin:
if nargin>=2, str = [str,': ',varargin{2}]; end
HOWEVER, when I tried this before, I found that Matlab then complained
about the mex files, and when I recompiled these, it complained about
spm_platform>init_platform, and when I fixed this, about another line,
and so on, until I got bored and gave up.
I think the short answer is that spm99 does not work with recent
Matlab versions. As JA may well point out, this is understandable
given that 1999 is not so recent in software terms...
If you really do want to compare spm99 and spm2 (or 5), which again,
is understandable, if you or your research have important spm99
results to reproduce/extend, then I think the easiest approach would
be to find an older copy of Matlab (6.5 I think, but I'm not sure...).
Or offer me *vast riches*, and I might be persuaded to go through and
fix everything ;-)
Best,
Ged.
|