SPM99 was written quite a long time ago now. This was well before Matlab 7 (R14) came along. The problem that you encountered should be fixed by replacing spm_platform.m with the spm_platform.m from the SPM2 distribution. You may still encounter other problems though. Best regards, -John > I have just installed Matlab 14 on my Mac and am trying to put SPM99 to > work, but haven't been very successful so far. (Note: I need to install > SPM99 rather than SPM2, for a question of compatibility with previous > work.) > > After searching for a solution in the FAQ and SPM mailing list, I > followed the suggestion to recompile SPM for the MAC platform, but it > still doesn't work. > > I get the following error: > > Initialising SPM........??? Error using ==> spm_platform > > Do not know how to set temp directory > > > > Error in ==> spm at 822 > > TWD = spm_platform('tempdir'); % Temp directory > > > > Error in ==> spm at 789 > > spm('defaults',Modality) > > > > Error in ==> spm at 454 > > spm('ChMod',Modality), > > fprintf('.') > > > > ??? Error while evaluating uicontrol Callback. > > What else do I need to do? Any suggestion would be kindly appreciated. > > Thanks in advance, > Susana