clear all
n=4;
x=zeros(1,n);

parpool(n)
parfor i=1:n
   t = getCurrentTask(); 
   disp(t.ID);
   x(i)=10*i;
   disp(x(i));
end
delete(gcp)

