I never did understand the batch system in SPM99, so can't explain why version 2.2 works, but 2.3 doesn't. These are the differences between them: 67c67 < % @(#)spm_coreg_ui.m 2.2 John Ashburner FIL 00/03/24 --- > % @(#)spm_coreg_ui.m 2.3 John Ashburner FIL 01/03/22 85c85 < SPMid = spm('FnBanner',mfilename,'2.2'); --- > SPMid = spm('FnBanner',mfilename,'2.3'); 146c146 < PGF = spm_input('batch',{},'target_image'); --- > PGF = spm_input('batch',{},'target_image',i); 157c157 < PFF = spm_input('batch',{},'object_image'); --- > PFF = spm_input('batch',{},'object_image',i); 166c166 < others = spm_input('batch',{},'other_image'); --- > others = spm_input('batch',{},'other_image',i); 182c182 < PGF = spm_input('batch',{},'target_image'); --- > PGF = spm_input('batch',{},'target_image',i); 191c191 < PFF = spm_input('batch',{},'reslice_image'); --- > PFF = spm_input('batch',{},'reslice_image',i); I have attached version 2.2 to this email. Best regards, -John On Tuesday 08 March 2005 20:36, Perschler, Pamela wrote: > Hi all, > I am trying to run a coregistration batch script (bottom) but I keep > getting the following error. I noticed some emails about spm_coreg_ui.m > v2.2 not having this problem. Is there any way to get that version or is > this actually a problem with my script? Also, how do I specify Mutual > Information Coregistration? > Thanks for the help!!! > Pam > > SPM99: spm_coreg_ui (v2.3) 14:14:59 - 08/03/2005 > ======================================================================== > Coregistering Subject 1: ??? Error using ==> spm_get_space > Can't read matrix information from "/". > > Error in ==> /home/matlab/spm99/spm_coregister.m > On line 55 ==> MG = spm_get_space(deblank(PGF(1,:))); > > Error in ==> /home/matlab/spm99/spm_coreg_ui.m > On line 214 ==> spm_coregister(PGF, PFF, PGG, PFG, > others,flags); > > Error in ==> /home/matlab/spm99/spm_bch.m > On line 187 ==> spm_coreg_ui; > > > %coreg.m (variable definition file for coregistration) > %_____________________________________________________________________ > %--------------------------------------------------------------- > % user variables defined here for analysis 'coreg' > %--------------------------------------------------------------- > anat3D = spm_get('files', './spgr', 'V1.img'); > mfunct = spm_get('files', './encode', 'meanV001.img'); > funct = spm_get('files', './encode', 'rV*.img'); > > %--------------------------------------------------------------- > % batch variables defined here for analysis 'coreg' > %--------------------------------------------------------------- > coreg = struct( ... > 'subject_nb', 1, ... > 'opt', 1, ... > 'target_mod', 2, ... > 'object_mod', 5, ... > 'target_image', [anat3D], ... > 'object_image', [mfunct], ... > 'other_image', [funct] ... > ); > > > Pamela Perschler > > Research Data Analyst > > Department of Psychiatry > > Center for Cognitive Medicine > > Neuropsychiatric Institute, Rm 827 > > University of Illinois at Chicago > > 912 S Wood St. MC913 > > Chicago IL 60612 > > Phone: 312-355-5652 > > FAX: 312-413-7856 > > e-mail: [log in to unmask] > > http://ccm.psych.uic.edu/index.htm