User`s guide
v
Contents
Getting Started
1
Parallel Computing Toolbox Product Description . . . . . . . . 1-2
Key Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Parallel Computing with MathWorks Products . . . . . . . . . . . 1-3
Key Problems Addressed by Parallel Computing . . . . . . . . . 1-4
Run Parallel for-Loops (parfor) . . . . . . . . . . . . . . . . . . . . . . . 1-4
Execute Batch Jobs in Parallel . . . . . . . . . . . . . . . . . . . . . . . 1-5
Partition Large Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Introduction to Parallel Solutions . . . . . . . . . . . . . . . . . . . . . 1-6
Interactively Run a Loop in Parallel . . . . . . . . . . . . . . . . . . . 1-6
Run a Batch Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Run a Batch Parallel Loop . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Run Script as Batch Job from the Current Folder Browser . 1-11
Distribute Arrays and Run SPMD . . . . . . . . . . . . . . . . . . . . 1-12
Determine Product Installation and Versions . . . . . . . . . . . 1-14
Parallel for-Loops (parfor)
2
Introduction to parfor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
parfor-Loops in MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Deciding When to Use parfor . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Create a parfor-Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Comparing for-Loops and parfor-Loops . . . . . . . . . . . . . . . . . 2-6