The error message is attached below. Do I need to compile this file? Thanks. Ze Invalid MEX-file '/pkg/spm5/spm_slice_vol.mexglx': /pkg/spm5/spm_slice_vol.mexglx: symbol mxGetNumberOfDimensions, version libmx.INTERNAL not defined in file libmx.so with link time reference. Error in ==> spm_read_vols at 34 Y(:,:,p,i) = spm_slice_vol(V(i),spm_matrix([0 0 p]),V(i).dim(1:2),0); Error in ==> batch_calc_kcc_wholebrain at 12 gmsk=spm_read_vols(vgmsk);