How to have input function continue if enter key pressed
Afficher commentaires plus anciens
I would like to have an input statement such as
response = input('Press enter to continue:','s')
and a while loop
while respond == '' end
This is not working exactly as planned. What is the best way to evaluate the return/enter key being pressed
Réponse acceptée
Plus de réponses (1)
Sean de Wolski
le 24 Août 2011
0 votes
Could you use an inputdlg instead of input? It'll give you a few more options as far as keypressfcn/keyreleasefcn since it's a figure and you can control.
Catégories
En savoir plus sur Calendar dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!