How to stop a simulation if condition is met?

1 view (last 30 days)
Hello,
I would like to know if there is a way to stop/pause a running simulation if a certain condition is met.
I would like to insert this function into a sfunction block
Thank you!

Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!