This looks like one of those "impossible-scenario" errors: ART is actually looping over i here and calling spm_get_data a single volume at a time (and in addition spm_get_data in turn also loops over i calling spm_sample_vol one volume at a time), yet spm_sample_vol is finding that the number of volumes is not one... I would probably recommend re-compiling your MEX files (or perhaps more simply, re-downloading/installing SPM)
Hope this helps
Alfonso
|