How to have input function continue if enter key pressed
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Sean de Wolski
2011년 8월 24일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!