User`s guide
Introduction to Parallel Solutions
1-11
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. The batch job runs on the cluster identified by the default cluster profile. The
following figure shows the menu option to run the script file script1.m:
Running a script as a batch from the browser uses only one worker from the cluster. So
even if the script contains a parfor loop or spmd block, it does not open an additional
pool of workers on the cluster. These code blocks execute on the single worker used for
the batch job. If your batch script requires opening an additional pool of workers, you
can run it from the command line, as described in “Run a Batch Parallel Loop” on page
1-9.
When you run a batch job from the browser, this also opens the Job Monitor. The
Job Monitor is a tool that lets you track your job in the scheduler queue. For more
information about the Job Monitor and its capabilities, see “Job Monitor” on page
6-29.