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
12 views (last 30 days)
Show older comments
how to get Keyboard input in appdesigner,what function can get keyboard input in matlab?do you know,thanks
3 Comments
Ameer Hamza
on 12 Oct 2020
Check the KeyPressFcn callback() of uifigure: https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html#mw_67a01097-0247-433a-bb73-d50824d9c9c6
Accepted Answer
Ameer Hamza
on 12 Oct 2020
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.
More Answers (0)
See Also
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!