Dear List I'm still getting errors trying to run a batch file, do you think its to do with the errors stated at the beginning (see below) or ultimately a matrix dimensions prob which would be down to my numbers not adding up (between the batch and onsets file) ? any help greatly appreciated!!! running spm5 on matlab 6.5.2 Ciara Warning: Figure file created with a newer version (7.0.0) of MATLAB > In /home/cmccabe/matlab-6.5.2/toolbox/matlab/iofun/hgload.m at line 65 In /home/cmccabe/matlab-6.5.2/toolbox/matlab/graphics/openfig.m at line 84 In /home/cmccabe/spm5/spm.m at line 415 In /home/cmccabe/spm5/spm_figure.m at line 265 In /home/cmccabe/spm5/spm.m at line 1007 In /home/cmccabe/spm5/spm_fmri_spm_ui.m at line 182 In /home/cmccabe/Reward/ANALYSIS/AD/spm_batchnewchoc2.m at line 153 SPM5: spm_fMRI_design (v$Rev: 784 $) 18:26:25 - 22/10/2007 ---------------------------------------------------------------- Saving fMRI design : ...SPM.mat saved SPM5: spm_fmri_spm_ui (v$Rev: 592 $) 18:26:25 - 22/10/2007 ======================================================================== Mapping files : ...done Calculating globals : ...done ??? Index exceeds matrix dimensions. Error in ==> /home/cmccabe/spm5/spm_fmri_spm_ui.m On line 413 ==> gSF(SPM.Sess(i).row) = GM./mean(g(SPM.Sess(i).row)); Error in ==> /home/cmccabe/Reward/ANALYSIS/AD/spm_batchnewchoc2.m On line 153 ==> SPM = spm_fmri_spm_ui(SPM); Dr Ciara McCabe University of Oxford Dept of Psychiatry Neuroscience Building Warneford Hospital Oxford OX3 7JX Telephone (01865)-223778 mob: 07966035631 [log in to unmask] http://users.ox.ac.uk/~psyc0288/perl/ciara_mcabe.html