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 Center および File ExchangeInteractive 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