there was a bug in spm_get_ons.m that we fixed some time ago. Please
save the attached file in your SPM5 installation so that it overwrites
the current version you have.
It is already fixed in SPM8 and this file will appear in the next (last)
set of updates for SPM5.
All the best,
Vanessa Janowski wrote:
> I am specifying a model in SPM5 for 16 subjects, and for 5 of the subjects
> I obtain the following error:
> Error running job: Index exceeds matrix dimensions.
> In file "/Applications/spm5/spm_get_ons.m" (v810), function "spm_get_ons"
> at line 246.
> In file "/Applications/spm5/spm_fMRI_design.m" (v784), function
> "spm_fMRI_design" at line 271.
> In file "/Applications/spm5/spm_fmri_spm_ui.m" (v592), function
> "spm_fmri_spm_ui" at line 213.
> In file "/Applications/spm5/spm_config_fmri_spec.m" (v1016), function
> "run_stats" at line 971.
> I have four sessions, and I obtain this error when adding parametric
> modulators in the third session. These parametric modulators are identical
> to those in the first session, and I do not get any errors there. I've
> double checked all of my onsets, lengths, etc and they are all correct, so
> I'm stumped as to the cause.
> Has anyone had experience with this error before? I would greatly
> appreciate any thoughts/suggestions.
> Best regards,
> Vanessa Janowski
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG