system call with parfor
13 ビュー (過去 30 日間)
古いコメントを表示
hi i have a script like this
for i=1:10
parfor n=1:20
system(command(i,n));
end
end
I'd like the first for the first expected the end of all system Call and then continue with the cycle .
1 件のコメント
Jan
2013 年 1 月 31 日
Does this mean, that you want to wait after the PARFOR loop until all system calls have been finished?
回答 (1 件)
Jason Ross
2013 年 1 月 31 日
I'm not entirely clear what you mean by "I'd like the first for the first expected the end of all system Call and then continue with the cycle", but parfor does not guarantee that the iterations happen in any order.
If you'd like more control of what happens where, you might want to look at using spmd.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!