Dear Gordon,
Yes, this is a common one. I had the same problem when I started using batch
mode, and I think the confusion arises because
a) it's batch mode... b) My original example is only for one session per
subject, which turns out to be a bit unhelpful c) the field and corresponding
structure called 'sessions' in the realign batch system, in fact refer to
subjects, and not sessions.
To be more explicit, you need an array of session structures (one structure per
subject). The structures contain one field, 'images', containing a cell array
of file names, one cell for each session, each cell containing a string array,
specifying the file names for that session. I've attached a simple example
(which I will also put on the web page).
It seems that an identical number of sessions per subject are enforced in
batch mode, but you could run different realign batches in this case.
Best,
Matthew
|