clear all
tic
j=1:1000;
for i=1:1000
   v(i,:)=i*j(:); 
end
size(v)
toc

clear all
tic
j=1:1000;
parfor i=1:1000
   v(i,:)=i*j(:); 
end
size(v)
toc

