Linking two dropdown menus to a pushbutton in a GUI

1 回表示 (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by