Prev: connecting and controlling the Digital camera in matlab for image aqusition
Next: Replacing a NaN by it nanmean
From: andrea on 1 Jul 2010 05:51 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 1 Jul 2010 06:35 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 1 Jul 2010 06:47
"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 |