User`s guide
11 Functions — Alphabetical List
11-60
Run the job.
submit(j);
Wait for the job to finish running, and get the output from the task evaluation.
wait(j);
taskoutput = fetchOutputs(j);
Show the 10-by-10 random matrix.
disp(taskoutput{1});
Create a Job with Three Tasks
This example creates a job with three tasks, each of which generates a 10-by-10 random
matrix.
c = parcluster(); % Use default profile
j = createJob(c);
t = createTask(j, @rand, 1, {{10,10} {10,10} {10,10}});
Create a Task with Different Property Values
This example creates a task that captures the worker diary, regardless of the setting in
the profile.
c = parcluster(); % Use default profile
j = createJob(c);
t = createTask(j,@rand,1,{10,10},'CaptureDiary',true);
See Also
createCommunicatingJob | createJob | findTask | recreate