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 CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by