Linking two dropdown menus to a pushbutton in a GUI

3 visualizaciones (últimos 30 días)
vedesh Mohit
vedesh Mohit el 13 de En. de 2020
Editada: vedesh Mohit el 14 de En. de 2020
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?

Respuestas (1)

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

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by