- Convert the numeric value to a character using char()
- Use get(gcf,'currentcharacter') to get the actual string
Collecting a key press
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to collect key presses and I need to see which key they pressed but MATLAB keeps giving me the numerical code as opposed to the character. How do I get the character as output instead?
0 Kommentare
Akzeptierte Antwort
Niels
am 3 Feb. 2015
It would be good if you provide us with a snippet of the code you are using right now.
With the current information provided, I can suggest 2 things:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!