フィルターのクリア

Displaying Windows Command Prompt in Matlab Command Window

25 ビュー (過去 30 日間)
Ryan
Ryan 2018 年 9 月 13 日
編集済み: Carlos Sarmento 2021 年 3 月 25 日
Hello all,
I have an executable that I am running from Matlab that I would like to see running in real time. At the moment I can only run the .exe and echo the output. Is there a way to either display cmd prompt on the matlab command window or open the actual cmd prompt and see it running?
syscmd = strcat(filepath,EXEname);
system(syscmd,'-echo')
The executable outputs a whole bunch of data as its running, but I can't see it until its finished and it outputs a file. I know you can run:
system('cmd')
but you can't use Matlab variable names once inside the command prompt. Any help is much appreciated!
-Ryan
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 8 月 28 日
I think you might be able to use the .NET system process library to start the process and fetch results as it runs.

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

回答 (1 件)

Carlos Sarmento
Carlos Sarmento 2021 年 3 月 25 日
編集済み: Carlos Sarmento 2021 年 3 月 25 日
I need to the same solution, anyone who help us?

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by