User`s guide

7 Program Independent Jobs
7-20
taskStartup.m automatically executes on a worker each time the worker begins
evaluation of a task.
poolStartup.m automatically executes on a worker each time the worker is included
in a newly started parallel pool.
taskFinish.m automatically executes on a worker each time the worker completes
evaluation of a task.
Empty versions of these files are provided in the folder:
matlabroot/toolbox/distcomp/user
You can edit these files to include whatever MATLAB code you want the worker to
execute at the indicated times.
Alternatively, you can create your own versions of these files and pass them to the job as
part of the AttachedFiles property, or include the path names to their locations in the
AdditionalPaths property.
The worker gives precedence to the versions provided in the AttachedFiles property,
then to those pointed to in the AdditionalPaths property. If any of these files is not
included in these properties, the worker uses the version of the file in the toolbox/
distcomp/user folder of the worker’s MATLAB installation.