I am using Matlab Appdesigner and want to be able to force quiet any callback function and any subfunction with in that callback function. I added a push button to my app named Cancel and put the following code with in the sub-function of the Excute callback function to stop it when I press cancel. However it takes time to quit the excustion of the callback function (Excute) because it doesn't start quiting untill it reaches out to the line where this code is at in the sub-function.
if app.CancelButton.Value == true
app.CancelButton.Value = false;
Is there any way to add a Canceling pushbutton to the app which overwrite everything as Ctrl-C does in the Command window?