I have used system(externalporgrema) in my program and can therfore not parfor. How can I assigne fprintf to each work so that I get this function to work.
while i < n+1
i = labindex + k;
fprintf('iteration number %d and k %d, labindex %d \n',labindex+k,k,labindex);
if labindex == prs
k = k +prs;