
335Explicit Parallelization Using MathWorks Toolboxes
The constructSchedulerCommand call represents the code to execute our scheduler’s sub-
mit command. This is typically a string that combines the scheduler command with ags,
arguments, and values derived from our object properties. The command is looped; so,
our scheduler starts a MATLAB worker on the cluster for each task.
Let us now consider the decode function. The aim is to read job and task information
into the MATLAB worker session. The decode function reads this information from the
environment variables transferred from the client to the worker nodes. Then, it sets the
property valu ...