image thumbnail
from Getting Started with Parallel Computing using MATLAB by Arjav Chakravarti
This is an older version of the introductory tutorial for running parallel MATLAB applications

testParforBatch.m
%% Simple parfor script to illustrate batch submission

N=50;
M=200;

A=zeros(N,1);

parfor i=1:N
    A(i)=A(i)+max(eig(rand(M)));
end

Contact us at files@mathworks.com