Hi,
How can I use the argument from to spm_jobman in 'jobs' ?
I have 2 .m files, main.m and jobs.m , I want to run a loop in jobs.m based on an argument pass from main to jobs:
main.m
%
jobfile = { 'jobs.m'};
jobs = repmat(jobfile, 1, 1);
inputs = cell(0, nrun);
spm('defaults', 'FMRI');
spm_jobman('run', jobs, argumentoIneedtopass);
jobs.m
%
while argumentoIneedtopass > 1
disp argumentoIneedtopass
end
|