Skip to content

Advanced Research Computing logoMATLAB


MATLAB

Running many jobs

Be careful running many job because of NFS.

MATLAB parallel modes

MATLAB has two main modes: Parallel within a job and parallel where MATLAB creates jobs for you.

Examples

The following examples are modifications to examples provided by MathWorks. The two most common scenarios are that you will have many files to process using a common procedure and you want to iterate over the files or you will have a single procedure that you wish to run many times, possibly with different input values, and collate the output. The examples below illustrate both scenarios. We show the examples once using a single node and once using multiple nodes.

Many files in parallel

Ovarian

Many iterations in parallel

Blackjack