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!