Getting callback from MatLab to the Command Line
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
my current project uses some batch script which shall:
1. do some stuff
2. then call MatLab with a m-script which takes some time to execute (around an hour)
3. after finishing this m-script, MatLab shall stay open
4. then the batch script shall do some further stuff
So, now the question is if there are some callback options in MatLab which inform the caller (batch script) that some task just finished (the -wait flag is not an option, because MatLab must stay open).
Thanks!
댓글 수: 3
Walter Roberson
2019년 3월 3일
I am not familiar with .bat and powershell.
On Unix type systems I would probably do something like create a co-process and monitor its stdout, watching for it to write some particular output such as "Ready Player One"
However, I am not sure what you mean by "connect to this matlab instance via a matlab access server" ? If you are referring to the COM Server API, then I am not certain that you can use an existing process that was not started by the COM Server API.
Does it really have to be the same MATLAB instance, or could you save() after the first and load() when you opened the COM Server ?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Write COM Applications to Work with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!