Print

Print


> Does anyone know how to fix this error when running the mutual information
> coregistration on a PC with Matlab5.3:
>
> ??? Invalid MEX-file
>
> Error in ==> \nate\spm99\spm_mireg.m (optfun)
> On line 119  ==> H =   spm_hist2(VG.uint8,VF.uint8,    VF.mat\spm_matrix(x
> (:)')*VG.mat ,sg);

I'm afraid that I am no great expert with PCs running Windows (only
use it for PowerPoint and trying to troubleshoot spm related problems
on PCs).  Our PCs that run Windows have Matlab 6.1 installed on them,
so the spm_hist2.dll file was compiled using Matlab 6.1. It may not
work when called from within the older Matlab 5.x.

If you have a C-compiler installed on your PC, then you could try
compiling the function by changing to the SPM directory and typing the
following in Matlab:

        mex spm_hist2.c -O

Alternatively, some kind soul out there who has Matlab 5.3 and a C compiler
installed on their PC may wish to do the job for you.

Best regards,
-John

--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491  or  +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420  http://www.fil.ion.ucl.ac.uk/~john