Batching different functions in a job
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I read the documentation on batch functions,but I could not find the answer. I want to batch different functions in a job and want to fetch results when each of the tasks finished. For example I want to fetch the result of the function 1 without waiting for other function results. Is it possible?
2 件のコメント
Muhammad Usman Saleem
2017 年 11 月 22 日
is your function 2 is calling inside of function 1? If this so then why are u not using break points in your code?
Emre Senol
2017 年 11 月 22 日
回答 (1 件)
Edric Ellis
2017 年 11 月 23 日
job1 = batch(@fcn_1, ...);
job2 = batch(@fcn_2, ...);
wait(job1); fetchOutputs(job1)
wait(job2); fetchOutputs(job2)
You can also use wait with a timeout if you want to poll to see which job completes first.
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!