From: andrea on
hi everybody... is there a command similiar to ctrl+c to write in my code (it is a GUI) in order to stop an animation just by clicking a button? It's quite boring to return everytime in the main page to push ctrl+c....
From: Jan Simon on
Dear Andrea,

> hi everybody... is there a command similiar to ctrl+c to write in my code (it is a GUI) in order to stop an animation just by clicking a button? It's quite boring to return everytime in the main page to push ctrl+c....

I'd expect CTRL+C to work in a GUI also.
Anyhow, just define a simple toggle button and check the property 'Value' in the animation loop.

Jan
From: us on
"andrea " <flavioantonello(a)alice.it> wrote in message <i0hoe8$rcj$1(a)fred.mathworks.com>...
> hi everybody... is there a command similiar to ctrl+c to write in my code (it is a GUI) in order to stop an animation just by clicking a button? It's quite boring to return everytime in the main page to push ctrl+c....

ML is not designed to handle a CTRL-C signal gracefully...
put a var into your loop, which can be altered from the outside of your function, eg, the command window...

us