From: Cyrus on
Hi all,

I have an infinite while loop that performs integrations in real time (hence the need for an infinite while loop). What I would like to figure out; however, is a way to break out of the loops if the user hits a key like the space bar, for example. Any feedback would be greatly appreciated!
From: someone on
"Cyrus " <cabdolla(a)umd.edu> wrote in message <i2gasc$k86$1(a)fred.mathworks.com>...
> Hi all,
>
> I have an infinite while loop that performs integrations in real time (hence the need for an infinite while loop). What I would like to figure out; however, is a way to break out of the loops if the user hits a key like the space bar, for example. Any feedback would be greatly appreciated!

Ctrl+C - but that will also terminate the program.
From: us on
"Cyrus " <cabdolla(a)umd.edu> wrote in message <i2gasc$k86$1(a)fred.mathworks.com>...
> Hi all,
>
> I have an infinite while loop that performs integrations in real time (hence the need for an infinite while loop). What I would like to figure out; however, is a way to break out of the loops if the user hits a key like the space bar, for example. Any feedback would be greatly appreciated!

a hint:
- look at this FEX submission as well as its offspring...

http://www.mathworks.com/matlabcentral/fileexchange/7465-getkey

us
 | 
Pages: 1
Prev: figure border
Next: Modify GUI dynamically