One-Step a Simulink Simulation from the MATLAB command line

6 ビュー (過去 30 日間)
Brad
Brad 2012 年 5 月 14 日
回答済み: krishna teja 2020 年 3 月 28 日
Hi,
I'm trying to step through a simulink model by just executing time 0 then 1, then 2, etc. from the command line. Rather than using the debugger, I'd like to execute the entire model each time, assuming its fixed-step.
Something like this would be preffered: simulate('model_name', onestep);
Is there any way to do this in simulink/MATLAB?

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2012 年 5 月 14 日
Yes, you should be able to use the model command to do this.
Note that the word model needs to be replaced with the actual name of the model.

krishna teja
krishna teja 2020 年 3 月 28 日

カテゴリ

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