Filter löschen
Filter löschen

How to Identify generated MATLAB instances using !matlab &

1 Ansicht (letzte 30 Tage)
Montina
Montina am 21 Feb. 2023
Beantwortet: Walter Roberson am 21 Feb. 2023
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 Kommentare
Walter Roberson
Walter Roberson am 21 Feb. 2023
How do you intend to communicate with the different instances?
Montina
Montina am 21 Feb. 2023
Through m-script I want to communicate with the different instances

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 21 Feb. 2023
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?

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by