help > motion-task corr error
Nov 7, 2017  04:11 PM | Ayline Maier - University Clinic Bonn
motion-task corr error
Hi all,

I am trying to examine the correlation between task conditions and motion parameters for 50 subjects averaged across two session using the motion-task corr function.
Given the sample size, I adapted the art.M and the EnterSPMfiles.m scripts in order to run these calculations automatically. If I run the art batch, the tool box works perfectly for some subjects, however,
crashes for others subjects showing following error message:

??? Index exceeds matrix dimensions.

Error in ==> art>UpdateSummaryplot at 896
fprintf(fp,' %9.1f%%',100*outliers_per_condition(1,:)./max(eps,outliers_per_condition(2,:)));
Error in ==> art>diffsglobalandmotion_Callback at 986
UpdateSummaryplot(hObject, eventdata, handles);
Error in ==> art>art_OpeningFcn at 493
diffsglobalandmotion_Callback(hObject, [], handles, 2*use_diff_global-1, 2*use_diff_motion-1);
Error in ==> gui_mainfcn at 221
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in ==> art at 140
gui_mainfcn(gui_State, varargin{:});
Error in ==> art_batch at 70
art('sess_file',cfgfile);
Error in ==> EnterSPMfiles at 41
art_batch(spmfiles)

I can't see any differences between the subjects and the first level SPM design matrix contains all necessary scans and motion parameters.
Yet somehow, art can't find the swr and rp files of session no. 2 for some subjects.

I highly appreciate any support, thank you.
Ayline