Hi Stephen,
You can use the File> save_batch option in SPM GUI to save a template with the required settings
and then write a small matlab script like the one attached to input new images to the matlab job in a loop
Not sure if there is a more effecient way to do this.
Thanks,
Pradeep
I want to do the following (pseudocode):
loop over subjects s {
cd into directory of s
load *.m batch script
run batch script
}
Is there a way to write a small wrapper script like that?
Or is there a way to "concatenate" the batch scripts for each subject within the matlabbatch "language" itself, with "run" commands in between?
TIA,
S