Alle,
If you output an empty slice timing batch, it includes this line:
matlabbatch{1}.spm.temporal.st.scans = {};
To fill it in with a script, you can try this to see if it works for you:
v = spm_vol(fname);
nframes = size(v,1);
scans = {cell(nframes,1)};
for i = 1:nframes
scans{1}{i} = sprintf('%s,%d', fname, i);
end
matlabbatch{1}.spm.temporal.st.scans = scans;
Kathy Pearson
|