Hello,
I just wanted to say thank you to those who have helped me previously - as
your help really got me out of a hole.
I am trying to run 'fMRI model spec' from the TASKS option using SPM5 fully
updated on MATLAB 7.1. Our paradigm is a box-car test where there is a 20
seconds "off" and 20 seconds "on" stimulus. There is an "on" stimulus 4
times ("off" 5 times) - giving a total 180 seconds. Our timing parameters
are as follows: units->scans, TR->2. One session/subject with one
condition: onset->[11 31 51 71]'in slice #'s, dur->10 in seconds, with a
1st order time modulation. We used a Canonical HRF basis function with
choice of time derivatives. Global normalization was specified as scaling.
Everything else was left alone / default. When running we get the
following error:
Error running job: Index exceeds matrix dimensions.i
In file "C:\MATLAB71_trial\spm5_updates958\spm_get_ons.m" (v810),
function "spm_get_ons" at line 270.
In file "C:\MATLAB71_trial\spm5_updates958\spm_fMRI_design.m" (v784),
function "spm_fMRI_design" at line 271.
In file "C:\MATLAB71_trial\spm5_updates958\spm_fmri_spm_ui.m" (v592),
function "spm_fmri_spm_ui" at line 213.
In file "C:\MATLAB71_trial\spm5_updates958\spm_config_fmri_spec.m" (v767),
function "run_stats" at line 971.
--------------------------
Done.
---->I went into spm_get_ons.m and this occurs here:
for j = 1:length(ton)
if numel(sf)>ton(j),
sf(ton(j),:) = sf(ton(j),:) + u(j,:)
end;
---> size(sf) = 144x2; ton = [208 528 848 1168]' --->clearly there is an
error. I am not sure where the problem occurs in this file and/or where
our inputs are not consistent.
Thanks so much. I apologize for the long email!
|