ChristianGaser / cat12

Computational Anatomy Toolbox for SPM12
https://neuro-jena.github.io/cat
GNU General Public License v2.0
32 stars 5 forks source link

cat_main_updateSPM1639 indexing error #8

Closed michaelmcl1960 closed 1 year ago

michaelmcl1960 commented 1 year ago

When I ran this for one particular subject I got the following error:


CAT Preprocessing error for synthSR:
------------------------------------------------------------------------
Index in position 4 exceeds array bounds. Index must not exceed 4.
------------------------------------------------------------------------
   84 - cat_main_updateSPM1639
   85 - cat_main1639
1269 - cat_run_job1639
   40 - cat_run_newcatch
1170 - run_job
  706 - cat_run
------------------------------------------------------------------------

I found the fix:

Change Line 83 of cat_main_updateSPM1639 from


  for ti=1:6

to

  for ti=1:size(P,4)
ChristianGaser commented 1 year ago

This is already solved in the current versions on Github, but not yet covered in the latest CAT12 release.