Main Content

Simple Batch Processing

Offload execution of a function or script to run in a cluster or desktop background

When working interactively in a MATLAB® session, you can offload work to a MATLAB worker session to run as a batch job. The command to perform this job is asynchronous, which means that your client MATLAB session is not blocked, and you can continue your own interactive session while the MATLAB worker is busy evaluating your code. You can also create a pool of workers for your batch job. The workers can run either on the same machine as the client, or if using MATLAB Parallel Server™, on a remote cluster machine.

Functions

expand all

batchRun MATLAB script or function on worker
diaryDisplay or save Command Window text of batch job
loadLoad workspace variables from batch job
waitWait for job to change state
deleteRemove job or task object from cluster and memory

Examples and How To

Concepts