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. The worker can run either on the same machine as the client, or if using MATLAB Distributed Computing Server™, on a remote cluster machine.
Use
Run Script as Batch Job from the Current Folder Browser
From the Current Folder browser, you can run a MATLAB script as a batch job by browsing to the file’s folder, right-clicking the file, and selecting Run Script as Batch Job.
Find out how to pass data and code to and from the workers.
By default, each worker in a cluster working on the same job has a unique random number stream.
Manage your jobs using the Job Monitor