필터 지우기
필터 지우기

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 (최근 30일)
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.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 20일

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by