Execute code if m-file runs into error
Mostrar comentarios más antiguos
I have tried finding the answer to this problem, but only got 'old' results which did not pose a solution. Maybe by now there is one.
I am controlling a combustion process using an m-file, which occasionally runs into errors (mostly scripting errors and typos). Having an error while the combustion is unstable, for example, is quite dangerous, so I want Matlab to execute a few lines of code whenever the m-file runs into an error. This is just simply closing the gas valve and turning the fan on.
Is there any solution for this? The problem is that most errors are scripting errors, which don't just give an error but also stop the mfile running...
Thanks!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!