Print

Print


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