apply initial conditions to a subsystem
2 ビュー (過去 30 日間)
古いコメントを表示
I want to apply an external initial condition to my resettable system, just like how it is possible with a integrator block. Anyone know how to do that?
2 件のコメント
回答 (1 件)
Fangjun Jiang
2019 年 11 月 4 日
Use "Initialize Function" in library Simulink\User-Defined Functions.
4 件のコメント
Fangjun Jiang
2019 年 11 月 5 日
編集済み: Fangjun Jiang
2019 年 11 月 5 日
No longer need to use "Resettable Subsyhstem"
- Construct your regular Subsystem with states
- Construct your reset logic to send a "reset" event, which trigs the "Reset Function"
- Inside your "Reset Function", construct those reset values and write to the states.
Take a look at the built-in demo models.
参考
カテゴリ
Help Center および File Exchange で Event Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!