| Contents | Index |
taskStartup(task)
task | The task being evaluated by the worker. |
taskStartup(task) runs automatically on a worker each time the worker evaluates a task for a particular job. You do not call this function from the client session, nor explicitly as part of a task function.
You add MATLAB code to the taskStartup.m file to define task initialization on the worker. The worker looks for taskStartup.m in the following order, executing the one it finds first:
Included in the job's FileDependencies property.
In a folder included in the job's PathDependencies property.
In the worker's MATLAB installation at the location
matlabroot/toolbox/distcomp/user/taskStartup.m
To create a version of taskStartup.m for FileDependencies or PathDependencies, copy the provided file and modify it as required. For further details on taskStartup and its implementation, see the text in the installed taskStartup.m file.
FileDependencies | jobStartup | PathDependencies | poolStartup | taskFinish

See how to solve large problems with minimal effort and reduce simulation time.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |