필터 지우기
필터 지우기

Linking two dropdown menus to a pushbutton in a GUI

조회 수: 3 (최근 30일)
vedesh Mohit
vedesh Mohit 2020년 1월 13일
편집: vedesh Mohit 2020년 1월 14일
I have two dropmenus with values set to each dropdown respectively. I would like to use a pushbutton to link the two dropdowns and connect the options from each drop-down. How do I write a callback for the pushbutton in this case?

답변 (1개)

Ajay Kumar
Ajay Kumar 2020년 1월 13일
편집: Ajay Kumar 2020년 1월 13일
In the ButtonPushed callback, you can directly assign the values of dropdown menu. For eg:
Dropdown.Value = "Your Option in dropdown";

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by