Hallo,
I have following problem:
I am working on the Appdesigner and I want to add a 'CancelButton'.
I have two buttons. The first button start a loop (function 'ButtonCallback') and the other button should terminate the execution of the function 'ButtonCallback'. I have already tried:
- exit()
- quite()
- return
- break
I am looking for a function like 'Ctrl-C'.
set(handle.Button,'Interruptible','on'); function ButtonCallback(app) for i = 1:N %statement
pause(0.00001); end end function CancelButtonCallback(app) %Code to terminate the 'Button1Callback(app)' function
end
thx
Best Answer