Hi, I have tried running this batch script built in the GUI - almost identical to one the one Guillaume posted previously but I am getting an error.. (I have tried this using both the spm8 and the spm12 I have installed on my system - same error) (swuSub003_0010-ep2d_bold_mocoOff-200-rest-0005.nii is the first file of my session) (the centre coordinates I used was a random coordinate within the anatomical mask I created using the anatomy toolbox) SPM BATCH: matlabbatch{1}.spm.util.voi.spmmat = {'C:\Users\jkahan\Documents\MATLAB\Resting_state\resting_state\Sub003\SPM.mat'}; matlabbatch{1}.spm.util.voi.adjust = NaN; matlabbatch{1}.spm.util.voi.session = 1; matlabbatch{1}.spm.util.voi.name = 'm1_test'; matlabbatch{1}.spm.util.voi.roi{1}.spm.spmmat = {''}; matlabbatch{1}.spm.util.voi.roi{1}.spm.contrast = 1; matlabbatch{1}.spm.util.voi.roi{1}.spm.conjunction = 1; matlabbatch{1}.spm.util.voi.roi{1}.spm.threshdesc = 'none'; matlabbatch{1}.spm.util.voi.roi{1}.spm.thresh = 0.05; matlabbatch{1}.spm.util.voi.roi{1}.spm.extent = 0; matlabbatch{1}.spm.util.voi.roi{1}.spm.mask = struct('contrast', {}, 'thresh', {}, 'mtype', {}); matlabbatch{1}.spm.util.voi.roi{2}.mask.image = {'C:\Users\jkahan\Documents\MATLAB\ROI_m1_4a4p_right_MNI.img,1'}; matlabbatch{1}.spm.util.voi.roi{2}.mask.threshold = 0.5; matlabbatch{1}.spm.util.voi.roi{3}.sphere.centre = [8 -36 77]; matlabbatch{1}.spm.util.voi.roi{3}.sphere.radius = 5; matlabbatch{1}.spm.util.voi.roi{3}.sphere.move.global.spm = 1; matlabbatch{1}.spm.util.voi.roi{3}.sphere.move.global.mask = 'i2'; matlabbatch{1}.spm.util.voi.expression = 'i1 & i3'; MATLAB: ------------------------------------------------------------------------ Running job #1 ------------------------------------------------------------------------ Running 'Volume of Interest' ## Note: this VOI facility is in a beta version. ## ## Interface and features might change in the future. ## SPM computation : ...done SPM computation : ...done Sphere centre moved to global maxima [ 48 -6 30] Error with file swuSub003_0010-ep2d_bold_mocoOff-200-rest-0005.nii Failed 'Volume of Interest' Error using spm_sample_vol Cant open image file. In file "C:\Users\jkahan\Documents\MATLAB\spm8\spm_get_data.m" (v3950), function "spm_get_data" at line 44. In file "C:\Users\jkahan\Documents\MATLAB\spm8\spm_regions.m" (v4513), function "spm_regions" at line 142. In file "C:\Users\jkahan\Documents\MATLAB\spm8\config\spm_run_voi.m" (v4269), function "spm_run_voi" at line 69. The following modules did not run: Failed: Volume of Interest