%% before executing it we need to initiate pool of workers
% matlabpool Nworkers
% Nworkres <= number of cores at computer
% in my case it is 2
% so I run 
% matlabpool 2
% this is time consuming process so do it only once per session

tic;

N=5e5;

parfor i=1:N 
	c=inv(rand(10)); 
end

tElapsed=toc

%% once you are done with parallel computation close the workers pool
% matlabpool close
