Hi Karin,
A few weeks ago I tried to figure this out myself and came up with the following:
parameters of type 'cfg_files' (i.e. file and directories) must be specified as cell array of strings.
parameters of type 'cfg_menu' (i.e. 'secs' or 'scans') must be specified as numeric menu index
parameters of type 'cfg_entry' are regular values (i.e. numeric or text) and don't have to be placed in cell arrays
Perhaps other SPM experts can confirm (or correct) these findings. Conversion to a cell array of strings can often be handled by the function cellstr().
You also might find the following SPM batch wrapper useful:
http://www.3tmri.nl/software/86-spmwrapperlib
best,
Paul
|