parfor and nested loop
조회 수: 1 (최근 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!