User`s guide
batch
11-11
Clean up a batch job’s data after you are finished with it:
delete(j)
Run a batch function on a cluster that generates a 10-by-10 random matrix:
c = parcluster();
j = batch(c,@rand,1,{10,10});
wait(j) % Wait for the job to finish
diary(j) % Display the diary
r = fetchOutputs(j); % Get results into a cell array
r{1} % Display result
More About
Tips
To see your batch job’s status or to track its progress, use the Job Monitor, as described
in “Job Monitor” on page 6-29. You can also use the Job Monitor to retrieve a job object
for a batch job that was created in a different session, or for a batch job that was created
without returning a job object from the batch call.
As a matter of good programming practice, when you no longer need it, you should delete
the job created by the batch function so that it does not continue to consume cluster
storage resources.
See Also
delete | load | wait | diary | findJob