help > RE: error message; conn batch 2nd level analyses
Feb 25, 2015  02:02 AM | Alfonso Nieto-Castanon - Boston University
RE: error message; conn batch 2nd level analyses
Dear Julius,

It seems you have probably named your batch script "conn_batch.m", which is conflicting with a CONN toolbox function with the same name (conn/conn_batch.m). To avoid this error simply rename your batch function to some other name (preferably something not starting with "conn_" since that is the convention used by CONN to name all of its own functions)

Hope this helps
Alfonso
Originally posted by Julius Steding:
Dear all,
I'm trying to get 2nd-level analyses run with a batch and I used the batch manual (www.nitrc.org/frs/download.php/4080/conn_fmri_batch_manual.pdf) for instructions. With the manual, I came up with the following batch code:

  clear batch;
  batch.Results.between_subjects.effect_names={'AllSubjects'};
  batch.Results.between_subjects.contrasts=[1];
  batch.Results.between_conditions.effect_names={'rest1','Mood_Assessment'};
  batch.Results.between_conditions.contrasts=[1,0];
  batch.Results.between_sources.effect_names={'Amy_SF_L','Amy_SF_R'};
  batch.Results.between_sources.contrasts=[0.5,0.5];
  batch.Results.done=1;
  conn_batch(batch);

But when I run it, all I get from Matlab is

  Attempt to execute SCRIPT conn_batch as a function:
  D:\203\conn_batch.m

I'm a newbie to Matlab and Matlab scripting(all I did so far was using SPM and other toolboxes). I tried figuring out what "Attempt to execute SCRIPT XY as a function" means in my case, but I couldn't.

Therefore I would be extremely grateful for any hint :) It would save me a lot of time if I could perform all analyses via batch.

Best,
Julius

Threaded View

TitleAuthorDate
Julius Steding Feb 20, 2015
RE: error message; conn batch 2nd level analyses
Alfonso Nieto-Castanon Feb 25, 2015
Julius Steding Feb 25, 2015