App Designer: Drop down menu values

12 次查看(过去 30 天)
I have a drop down menu with 10 different options. I need a statement that will give me different values based on the option picked. I know it is probably really straight forward and easy, but i just don't get it.

回答(1 个)

ES
ES 2017-11-10
Get the value of the selected option from drop down menu callback using Value property.
Value will be the index of selected option.
Using this Value property, you can index and select from your list of values.
  5 个评论
Robert Pritchard
Robert Pritchard 2019-4-2
Me too lol. what are the chances 2 people who need this stumbled upon it a year and half later on the same day
rajatajay thakur
rajatajay thakur 2020-6-28
What if I have images like peppers or cameraman in that option and I need to display that image on axes when selected please help

请先登录,再进行评论。

类别

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