wait for process in matlab2014a

2 ビュー (過去 30 日間)
Raphael
Raphael 2014 年 7 月 24 日
コメント済み: Image Analyst 2014 年 7 月 25 日
Hello How can I force matlab2014a to wait for a EXE process to complete? It used to be possible with "isprocess" in previous versions but it seems like this function does no longer exist in 2014a. Thanks Raphael
  1 件のコメント
Ben11
Ben11 2014 年 7 月 24 日
Isn't 'isprocess' a submission from the File Exchange? If so that should work in 2014a I guess.

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

採用された回答

per isakson
per isakson 2014 年 7 月 24 日
編集済み: per isakson 2014 年 7 月 24 日
...
status = system(command) calls the operating system to execute the
specified command. The operation waits for the command to finish
execution before returning the exit status of the command to the
status variable.
...
To execute the operating system command in the background, include
the trailing character, &, in the command argument (for example,
'notepad &' on a Windows platform, or 'emacs &' on UNIX®). The exit
status is immediately returned to the status variable.
&nbsp
And like Ben says Isprocess is in the File Exchange
  1 件のコメント
Image Analyst
Image Analyst 2014 年 7 月 25 日
A related item (how to get other processes that are running) is given by the Mathworks Support Team here: http://www.mathworks.com/matlabcentral/answers/102372-how-can-i-get-the-process-id-of-the-current-matlab-session-in-matlab-7-5-r2007b
And here's another thing that could be useful in Windows: call up device manager:
% Launch Device Manager. Use trailing ampersand, otherwise program does not continue until user closes Device Manager.
system('C:\Windows\System32\devmgmt.msc &')

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by