% Get a handle to the cluster % See the page for configuring and setup of MATLAB for details c=parcluster('kebnekaise') % Run the jobs on 4 workers j = c.batch(@funct, 0, {10000}, 'pool', 1) % Wait till the job has finished. Use j.State if you just want to poll the % status and be able to do other things while waiting for the job to finish. %j.wait