How to stop a simulation if condition is met?

4 views (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)

Community Treasure Hunt

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

Start Hunting!