Thanks for your reply very much. I donot want to use UIFigure to get keyboard input. I need a function that looks like key = getKeyPress(),key = z when I press "z" on the keyboard.
how to get Keyboard input in appdesigner
13 次查看(过去 30 天)
显示 更早的评论
how to get Keyboard input in appdesigner,what function can get keyboard input in matlab?do you know,thanks
3 个评论
Ameer Hamza
2020-10-12
Check the KeyPressFcn callback() of uifigure: https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html#mw_67a01097-0247-433a-bb73-d50824d9c9c6
采纳的回答
Ameer Hamza
2020-10-12
You can create UI Editfield: https://www.mathworks.com/help/matlab/ref/uieditfield.html. It gives the option to receive both numeric and text inputs.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!