Simulink :: Change the number of continous-states during simulation

Is it possible to change the number of continous-states during simulation?
In Level-2 S-function
and how?

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2013 年 5 月 8 日

0 投票

No, the number of states (continuous/discrete) needs to be configured in the setup method, and cannot change during simulation.
Bakró
Bakró 2013 年 5 月 8 日

0 投票

and... is it possible to set the number of states by a Dialog Parameter?

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2013 年 5 月 9 日
Yes, it is. You can read the dialog parameter value in the setup method. (Also, as an aside, could you ask follow-up questions as a comment to my original answer. It is confusing to ask a question as an "Answer". Thanks!)

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

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

質問済み:

2013 年 5 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by