This page demonstrates procedures for running MATLAB applications through the SCC’s batch scheduler. For MATLAB operations such as code development, GUI, and other graphical rendering, an interactive MATLAB window is the natural and preferred mode of operation. Other applications, such as running long duration production runs that do not require interaction, are best run in the background mode, commonly known as batch. On the SCC, batch jobs are managed by the Open Grid Scheduler (OGS). Users submit batch jobs via a job submission command (qsub) and the rest is handled by the batch scheduler and the operating system. MATLAB batch job submission and handling generally follow the guidelines detailed in the Shared Computing Cluster’s Running Jobs page. Users running a large number of MATLAB jobs may require additional steps for efficient and robust batch operations. These will be elaborated on and demonstrated below where necessary.

Batch Basics

Types of MATLAB Batch Jobs

Depending on the applications, MATLAB batch job running procedures generally fall into one of the following categories. Sample batch scripts and utilities discussed in this page are available for download or copy (for SCC users).

scc1$ cp -r /project/scv/examples/matlab/batch  your-SCC-dir-path