Replies: 1 comment
-
Hey @JAAdrian, thanks for the great project 👍🏻 you made writing MATLAB code bearable; it would be great if you could also provide an example for nested loops where the inner loop is parallel, i.e., numOuterIterations = 3;
numInnerIterations = 15;
b1 = ProgressBar(numOuterIterations, 'Title', 'Loop 1');
b1.setup([], [], []);
for iOuterIteration = 1:numOuterIterations
b2 = ProgressBar(numInnerIterations, ...
'IsParallel', true, ...
'WorkerDirectory', pwd(), ...
'Title', 'Loop 2' ...
);
b2.setup([], [], []);
parfor jInnerIteration = 1:numInnerIterations
pause(0.1);
updateParallel([], pwd);
end
b2.release();
b1([], [], []);
end
b1.release();
ProgressBar.deleteAllTimers(); As you can see, on the right-hand side of the outer loop, there are empty lines of the inner loop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I would really like to hear some feedback of you, the users of the progress bar. Is there something which is really bugging you and/or not functioning the way you want?
Often there are technical limitations why things are the way they are but sometimes it's just really a lack of a fresh perspective.
So, fire away!
Beta Was this translation helpful? Give feedback.
All reactions