Parallel Computing in Matlab: An Introduction
Parallel Computing in Matlab: An Introduction
An Introduction
Overview
Using parfor
Use matlabpool open local 2 to open two workers (duo core) Use parfor like a for loop When finished, use matlabpool close
Batch Job
Batch Job
job=batch('script_name')
wait(job)
load(job,'variable_name') destroy(job) See example three
Offload work
Run in parallel
job=batch('script_name','matlabpool',1)
Here we have one worker in addition to the one running the batch script for a total of two
wait(job)
load(job,'variable_name')
destroy(job)