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!