MATLAB Answers

Linking two dropdown menus to a pushbutton in a GUI

6 views (last 30 days)
vedesh Mohit
vedesh Mohit on 13 Jan 2020
Edited: vedesh Mohit on 14 Jan 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?

  0 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.