How can i keep a matlab funtion running, event though the simulink simulation which is called crashes?
Show older comments
Hy there!
I'm running a matlab funtion in a m.-file and i'm calling a simulink/simmechanics model there. since i change the parameters of this model in my m.-file, sometimes the model works, and sometimes it crashes.
I'm doing an optimization of my model here, so i simply would like to ignore the ones that crashed, and continue with other parameters, without having to restart my function. What can I do?
Thanks in advance! Best, Dominik
1 Comment
José-Luis
on 16 Aug 2012
Use try/catch?
Accepted Answer
More Answers (0)
Categories
Find more on Simulation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!