line code for running simulink model without clicking on run button

1 回表示 (過去 30 日間)
Sandy
Sandy 2016 年 1 月 27 日
回答済み: Walter Roberson 2016 年 1 月 27 日
Hello everyone,
I am trying to run Simulink model from TRNSYS(17). the mfile automatically runs using type 155 from TRNSYS.
I know that for running Simulink model from mfile we use open('filename') to open and sim('filename) to run the simulation but each time we click on run button or by selecting that line and right click, evaluate selection.
Is there any way to run Matlab script without clicking on run button??

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 1 月 27 日
You should load_system() or open_system(), not open()

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by