Parallel Problem: Get keyboard input in 60 sec, otherwise jump out
Show older comments
Hi to all, I recently encountered a problem. I want to get the keyboard input and read it and put something on the screen if the user puts a cerntain key such as 'q'. However, if the user doesn't put in anything in 20 sec, I want the time counter to start again. This procedure loops over for 60 times.
Can anyone help me with this? Thank you very much!
Accepted Answer
More Answers (0)
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!