apply initial conditions to a subsystem
1 次查看(过去 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?
回答(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!