help
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:
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
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
Title | Author | Date |
---|---|---|
Julius Steding | Feb 20, 2015 | |
Alfonso Nieto-Castanon | Feb 25, 2015 | |
Julius Steding | Feb 25, 2015 | |