how to get keyboard in matlab

조회 수: 27 (최근 30일)
bo peng
bo peng 2020년 10월 12일
답변: Walter Roberson 2021년 5월 14일
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.Do you know?
  댓글 수: 3
Adam Danz
Adam Danz 2021년 5월 13일
Would you want to use a regular figure instead of a uifigure or are you trying to avoid using any figure at all?
bo peng
bo peng 2021년 5월 14일
i want not to use any figure.

댓글을 달려면 로그인하십시오.

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2020년 10월 14일
use function input()?
  댓글 수: 2
bo peng
bo peng 2021년 5월 13일
input function can only monitor limit input, java robot class is a good choice
bo peng
bo peng 2021년 5월 13일
please use java.awt.robot to monitor event

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2021년 5월 14일
psychtoolbox http://psychtoolbox.org/ has several input methods that do not require use of figures to receive typing.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by