How to run dos command with Matlab code?

Hello?
I would like to know how to run the dos command with matlab code.
If I open the 5F_steady.sim file with dos with the exe. program called simread3 with the command dos('simread3 5F_steady.sim'), the dos screen appears as follows.
I want to exit the dos screen by entering y in "Report node contaminant results? (y/n)".
What code should I enter in matlab in this situation?
Thank you very much!

1 件のコメント

Mario Malic
Mario Malic 2020 年 11 月 15 日
You can't interact with command line through MATLAB's command window easily. You have to type the answer in the Windows command line, unless there is an input argument for that application so that it doesn't require manual input of the answer.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2020 年 11 月 15 日

コメント済み:

2020 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by