MATLAB UI callbacks (e.g. WindowKeyPressFcn) can be interrupted by newly triggered callbacks. This is very useful for terminating code which is taking too long to run. Is there any way to programmatically trigger a callback event?
Note that, in contrast to the answers to this question, I am not asking how to run a callback function programmatically. I actually want to trigger the callback event programmatically, to make use of this interruptibility feature.