parfor i=1:2 if i==1 getVecs('test_a'); else getVecs('test_b'); end end