% doparallel in Matlab

tic
for k=1:1000,
    A=randn(500,500);
    [U,S,V]=svd(A);
end
toc

% tic
% parpool(12)
% toc
tic
parfor k=1:1000,
    A=randn(500,500);
    [U,S,V]=svd(A);
end
toc
% delete(gcp)
