How to implement switch-case statements/keypress functions in GUI? (such that when a button was pressed, it would run the commands like imread/imshow. I would like to assign 10 buttons for 10 different commands.)
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Good day! I have always tried coding switch-case statements but none of those worked for my GUI. I would like to ask for an advice on how to construct simple switch-case statement in GUI that would generate the functions under specific buttons/when a certain keyboard button was pressed. For an example, when the user pressed '1', then the program would display an image. When the user pressed '2', then the program would do another function.
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!