User`s guide
11 Functions — Alphabetical List
11-56
is not specified and the cluster has a value specified in its 'Profile' property, the
cluster’s profile is automatically applied. For details about defining and applying profiles,
see “Clusters and Cluster Profiles” on page 6-14.
Examples
Create and Run a Basic Job
Construct an independent job object using the default profile.
c = parcluster
j = createJob(c);
Add tasks to the job.
for i = 1:10
createTask(j,@rand,1,{10});
end
Run the job.
submit(j);
Wait for the job to finish running, and retrieve the job results.
wait(j);
out = fetchOutputs(j);
Display the random matrix returned from the third task.
disp(out{3});
Delete the job.
delete(j);
Create a Job with Attached Files
Construct an independent job with attached files in addition to those specified in the
default profile.
c = parcluster
j = createJob(c,'AttachedFiles',...