Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Simulink modeling from the command line

1 回表示 (過去 30 日間)
lei
lei 2019 年 10 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How can I run two simulink models with inf simulation time at the same time from the command line?

回答 (1 件)

Ankit
Ankit 2019 年 10 月 7 日
編集済み: Ankit 2019 年 10 月 7 日
you can use following commands:
open_system({ 'model1name', 'model2name' });
set_param('model1name', 'StopTime', 'inf')
set_param('model2name', 'StopTime', 'inf')
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 10 月 7 日
However, you cannot sim() them both at the same time and have them both running. In order to do that, see https://www.mathworks.com/help/simulink/ug/running-parallel-simulations.html

Community Treasure Hunt

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

Start Hunting!

Translated by