Dear Ana, the MEX files provided with FieldMap seem to be incompatible with your Matlab version/Linux platform. You can try to use these precompiled MEX files: ftp://ftp.fil.ion.ucl.ac.uk/spm/spm5_updates/SPM5_Matlab7.1_Linux_MEX.tar.gz (overwriting the current files in your SPM distribution). Or follow the indications on this page to compile the MEX files yourself: http://en.wikibooks.org/wiki/SPM/Installation_on_Linux#SPM5 I hope this helps, Guillaume. Ana Catarino wrote: > Hello, > > I'm trying to use the FieldMap Toolbox (ver.beta.2.0) for SPM5 to create a > field map. I introduce the Phase and Magnitude images and the Short and Long > TE times and then I click calculate and I get the following error message in > Matlab: > > ??? Invalid MEX-file > '/usr/local/bin/spm5/toolbox/FieldMap/ip_bwlabel.mexglx': > /usr/local/bin/spm5/toolbox/FieldMap/ip_bwlabel.mexglx: symbol > mxGetNumberOfDimensions, version libmx.INTERNAL not defined in file > libmx.so with link time reference. > > Error in ==> pm_mask at 38 > [lmask,num] = ip_bwlabel(mask,6); > > Error in ==> pm_unwrap at 167 > mask = pm_mask(angvar,mthres,ndil); > > Error in ==> pm_make_fieldmap at 162 > [fm.upm,angvar,fm.mask,fm.opm] = pm_unwrap(cmap,pxs,flags.method); > > Error in ==> FieldMap at 1621 > IP.fm = pm_make_fieldmap([IP.P{1} IP.P{2} IP.P{3} > IP.P{4}],IP.uflags); > > Error in ==> FieldMap at 697 > status=FieldMap('CreateFieldMap',IP); > > ??? Error while evaluating uicontrol Callback > > > I've searched the archives and haven't found anyone with a similar problem, > so any help will be very much appreciated. Is it a bug or am I doing > something wrong? > > Thanks, > Ana Catarino -- Guillaume Flandin, PhD Wellcome Trust Centre for Neuroimaging University College London 12 Queen Square London WC1N 3BG