フィルターのクリア

How to know status of the MATLAB execution process has got completed or not?

11 ビュー (過去 30 日間)
Montina
Montina 2023 年 4 月 4 日
コメント済み: Montina 2023 年 4 月 4 日
From main program, I am starting multiple MATLAB Instances (say 3 MATLABs), and all the instances run a mscript. I am using `!matlab` command to start instances.
Once MATLAB execution gets completed in each instance , I want to know the status of their completion in the main program.

採用された回答

Mario Malic
Mario Malic 2023 年 4 月 4 日
Hello,
It's been a while since I last did it, if you call matlab.exe with input arguments, I think it closes itself after its finished. If you call it this way, instead of using (!), you can solve it, check this link.
The other way is to write a code to your mscripts that will save a file to specific location. Your main program has to check that these file exist, once they do, continue execution of it.
  3 件のコメント
Mario Malic
Mario Malic 2023 年 4 月 4 日
If you use the ampersand
system("matlab.exe& other arguments")
after the executable, it will report the status immediately, otherwise it returns status after exit.
However, I still would suggest the solution from the link.
Montina
Montina 2023 年 4 月 4 日
Sure will try with the option available in the link. Thank You :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by