Linking two dropdown menus to a pushbutton in a GUI

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (1)

Ajay Kumar
Ajay Kumar il 13 Gen 2020
Modificato: Ajay Kumar il 13 Gen 2020
In the ButtonPushed callback, you can directly assign the values of dropdown menu. For eg:
Dropdown.Value = "Your Option in dropdown";

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by