apply initial conditions to a subsystem
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Fangjun Jiang
il 4 Nov 2019
Use "Initialize Function" in library Simulink\User-Defined Functions.
4 Commenti
Fangjun Jiang
il 5 Nov 2019
Modificato: Fangjun Jiang
il 5 Nov 2019
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.
Vedere anche
Categorie
Scopri di più su Event Functions in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!