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

spmdExample1.m
matlabpool open 2 % can adjust according to your resources
 
M = 200;

spmd
   N = rand(M,M,codistributor);  % 200x100 chunk per worker
   A = svd(N);
end
 
A = max(A{1}); % Indexing into the composite object
disp(A)

clear N
 
matlabpool close

Contact us at files@mathworks.com