Specifying a callback in Matlab after any runtime error
Posted
by JmG
on Stack Overflow
See other posts from Stack Overflow
or by JmG
Published on 2010-06-09T21:52:43Z
Indexed on
2010/06/09
23:12 UTC
Read the original article
Hit count: 272
matlab
Is there a way to specify code to be run whenever an error occurs in Matlab? Googling I came across RunTimeErrorFcn and daqcallback, but I believe these are specific to the Data Acquisition Toolbox. I want something for when I just trip over a bug, like an access to an unassigned variable. (I use a library called PsychToolbox that takes over the GPU, so I want to be able to clear its screen before returning to the command prompt.)
© Stack Overflow or respective owner