Hi Maria,
There are a few things to note. But it might have been
easier to start with @stim_analyze and make it work for
your case.
1. $LCfile is cleared within the foreach loop, erasing any result.
Put the line:
echo -n "" > $LCfile
before the foreach loop.
2. The (text) output from 3dDeconvolve is not being redirected
to out.3dD.$iter. Make the last line of 3dDeconvolve read:
-x1D X.xmat.${iter}.1D. > out.3dD.$iter
3. The -stim_times file names for 3dDeconvolve have an
extra '.' after ${iter}, e.g. the first one should read:
stim_times.${iter}_01_first.1D .
4. The '#' command not found erros are likely just because
you are using cut-and-paste to run the script. They do not
matter.
- rick
- rick