how to get keyboard in matlab

26 vues (au cours des 30 derniers jours)
bo peng
bo peng le 12 Oct 2020
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 commentaires
Adam Danz
Adam Danz le 13 Mai 2021
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 le 14 Mai 2021
i want not to use any figure.

Connectez-vous pour commenter.

Réponses (2)

Fangjun Jiang
Fangjun Jiang le 14 Oct 2020
use function input()?
  2 commentaires
bo peng
bo peng le 13 Mai 2021
input function can only monitor limit input, java robot class is a good choice
bo peng
bo peng le 13 Mai 2021
please use java.awt.robot to monitor event

Connectez-vous pour commenter.


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

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by