How to add arbitrarily-timed events to a Simulink simulation?

2 次查看(过去 30 天)
My simulation takes an array of state variables and modifies it according to the effects of a series of events. I would like to implement these events so that they could occur in any order, with any timing, and follow branching paths based on current state(s). What's the best strategy for doing this in Simulink, e.g. function-call vs triggered subsystems, should I write a MATLAB function or is there something pre-made that's suitable, etc.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by