Dear colleagues, I am trying to use DARTEL in SPM8, I managed to import my data and create templates for a set of grey and white matter images (N=40, both). This gives me 7 templates (0-6) that consist of 4D nii files (1st GM, 2nd WM). So everything looks fine. Then I tried to run DARTEL on the existing templates for both sets of images (GM and WM) simultaneously. The program then runs well on the first volume, but subsequently returns the following error message: Running 'Run DARTEL (existing Templates)' *** volume_1_STRUCT *** 1 112233 128779 241012 1112.89 2 127165 4523.06 131688 65.812 3 126481 4833.32 131314 20.9853 4 125707 2367.8 128075 84.1763 5 120462 5937.08 126399 31.8471 6 120509 5825.29 126334 24.622 7 120151 2994.58 123145 71.2035 8 114799 6601.66 121400 27.1789 9 114844 6467.53 121311 22.8679 10 114586 3342.65 117929 64.1355 11 109006 7077.53 116084 28.3324 12 108949 6987.96 115937 21.6243 13 108927 3643.92 112571 56.321 14 103756 7013.23 110769 26.2214 15 103483 7116.76 110600 22.6629 16 103544 7425.2 110969 29.7174 17 102759 7917.02 110676 23.5859 18 102601 8030.82 110632 21.3674 *** volume_2_STRUCT *** Failed 'Run DARTEL (existing Templates)' Error using ==> subsref Index exceeds matrix dimensions. In file "C:\Program Files\MATLAB\Shared\spm8\@nifti\subsref.m" (v1143), function "rec" at line 227. In file "C:\Program Files\MATLAB\Shared\spm8\@nifti\subsref.m" (v1143), function "subsref" at line 45. In file "C:\Program Files\MATLAB\Shared\spm8\toolbox\DARTEL\spm_dartel_warp.m" (v1381), function "spm_dartel_warp" at line 61. The following modules did not run: Failed: Run DARTEL (existing Templates) 1) Is anyone familiar with this error? 2) A related question: in the default batch for "Run DARTEL (existing templates)", 6 outer iterations are implemented. The batch "Run DARTEL (create templates)" gives me 7 templates. Which templates do i need for "Run DARTEL (existing templates)"; the first 6 (0-5) or the last six (1-6), or something different? Thanks in advance, Dennis Dr. Dennis van 't Ent Dept. Biological Psychology Fac. Psychology and Education Van der Boechorststraat 1 1081 BT, Amsterdam The Netherlands Tel. +31-20-5982534 Fax. +31-20-5988832 E-mail: [log in to unmask]