Hi Jill,
Since these commands are just on 1D files, it might be better
to use 1deval, instead of 3dcalc.
For your dataset choices in the first command, it might be good
to use double quotes, instead of single quotes (which allow for
variable expansion).
so: -a {$subj}_ROIstats.1D"{1..11}[$col]"
----
Note also that -prefix does not apply to 1deval. Consider using
redirection to the output file: > ROIstats_$subj.condion_mean.$col.1D
----
The -expr is also not quite right. If you want the mean of those
three conditions, try: -expr '(a+b+c)/3.0'
- rick