MATLAB Answers

smpd assigning to workers with labindex

2 views (last 30 days)
Knut Jørgen
Knut Jørgen on 17 Jun 2020
Commented: Knut Jørgen on 19 Jun 2020
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.
n=100000
spmd
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;
end
end
end
  2 Comments
Knut Jørgen
Knut Jørgen on 19 Jun 2020
The code look like this and it load data from freesurfer.
for i=1:n
system(run mplus on each collum)
end

Sign in to comment.

Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!