How to Identify generated MATLAB instances using !matlab &

1 回表示 (過去 30 日間)
Montina
Montina 2023 年 2 月 21 日
回答済み: Walter Roberson 2023 年 2 月 21 日
Through script I am generating multiple matlab instances using !matlab & and now for the created instances, I want to load projects for the generated MATLAB instances. So, how shall I identify the generated MATLAB instances and then I can perform certain program execution
  2 件のコメント
Walter Roberson
Walter Roberson 2023 年 2 月 21 日
How do you intend to communicate with the different instances?
Montina
Montina 2023 年 2 月 21 日
Through m-script I want to communicate with the different instances

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

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 2 月 21 日
if you are using !matlab& then you must be using Linux or MacOS, with Linux being more likely.
You can use system('ps') with various options to find the process IDs of the executing matlab processes.
Now what? How specifically are you going to communicate with those processes?

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by