parfor and nested loop
2 次查看(过去 30 天)
显示 更早的评论
hi,
can I use parfor with nested loop?
for ex.
parfor i=1:5
for j=1:2
%%whatever
end
end
should I use par with each for or with one.
please, I need somebody can solve my problem.
Thanks in advance
0 个评论
回答(2 个)
Mischa Kim
2014-1-23
Hello huda, there are no nested parfor loops. Parallelization with parfor only works on the outermost loop.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!