Getting MATLAB to accept input from external keypad

5 views (last 30 days)
I am running MATLAB 2017a on a Macbook Pro 10.12.6 (Sierra). In addition to the keyboard on my laptop, I need MATLAB to take inputs from an external (USB connected) keypad. Even though input from the keypad seems to be functional (i.e., if I press '4', it will show up on MATLAB), MATLAB doesn't take it to be a valid argument. When I run KbDemo, input from the keypad are not being registered as responses. Can someone tell me how to switch the main keyboard input to the external keypad instead?
Thanks in advance

Answers (1)

David Fink
David Fink on 28 Sep 2017
Since MATLAB displays '4' when you type it on the external keypad, MATLAB does receive signals from the external keypad.
This implies that KbDemo is not handling the external keypad signals as you would expect. Different keys with the same output can be handled differently, so I suggest looking at the source code of KbDemo or asking its authors.

Community Treasure Hunt

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

Start Hunting!