How to stop a process definitely from my application's main figure?
How to stop a process definitely from my application's main figure?
(OP)
Hi anyone,
My program execute a certain process. I need to be
abble to cancel it at any moment by pressing a button without going out my application.
It would be a kind of CONTROL+C but it would occur while the application's main figure is opened, i.e., without going out the application.
Thanks in advance,
CRIS
My program execute a certain process. I need to be
abble to cancel it at any moment by pressing a button without going out my application.
It would be a kind of CONTROL+C but it would occur while the application's main figure is opened, i.e., without going out the application.
Thanks in advance,
CRIS





RE: How to stop a process definitely from my application's main figure?
You have to create the button with a handle and path it to your program. In different points (or in a main loop) put the following lines:
v=get(hbutton,'value'); % say hbutton is the handle
if v
return % or 'pause' if you just want to pause
end
Joe
BSTEX - Equation viewer for Matlab
http://www.geocities.com/bstex2001