How to stop displaying keyboard input on matlab command line

17 vues (au cours des 30 derniers jours)
Happy Bear
Happy Bear le 4 Mar 2020
I've developed a "game" on matlab which opens up a window, I play it using 2 different keys repeatedly and then the game ends and the window closes.
When the window closes, I can see all the letters corresponding to the keys that I played during the game, in the command line, smth like:
Is there any way for this not to be displayed on the command line or for it be deleted before the game window closes?
>> adaddadaddda
  1 commentaire
KSSV
KSSV le 4 Mar 2020
Check did you forget to terminate any line with ;.

Connectez-vous pour commenter.

Réponses (1)

Jamuna
Jamuna le 4 Mar 2020
End the statement of keyboard input with semicolon
x = input(prompt);

Catégories

En savoir plus sur Number games dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by