I execute the following code:
jm = findResource('jobmanager','name',<YOUR JOB MANAGER>); job = createJob(jm,'FileDependencies',{'iotest.m'}); t = createTask(job,@iotest,1,{rand(100,10)}); submit(job) waitForState(job) x = getAllOutputArguments(job) w = t.Worker; get(w,'Hostname')
When I look in the $MATLAB\toolbox\distcomp\bin\win32 directory on the machine returned in the last command above, I see foo.txt (where $MATLAB is the MATLAB root directory on my machine, as returned by typing
matlabroot
at the MATLAB command prompt).
Best Answer