#!/bin/tcsh

### Script for Part 3 of AFNI Time Series Analysis videos
### - Create a regression matrix for a Block design
###   with 20 second duration, repeated every 30 seconds
### - plots result into file s3a.png

# create the matrix file (s3a.xmat.1D)

3dDeconvolve -nodata 150 2.0  \
             -polort -1       \
             -x1D s3a.xmat.1D \
             -num_stimts 1    \
             -stim_times 1    \
              '1D: 0 30 60 90 120 150 180 210 240 270' \
              'BLOCK(20,1)'

# plot it

1dplot -xaxis 0:150:15:2 -xlabel TR -png s3a.png s3a.xmat.1D
