Info

此问题已关闭。 请重新打开它进行编辑或回答。

Matlab GUI question regarding pop-up menu

1 次查看(过去 30 天)
Kitae
Kitae 2013-6-2
关闭: MATLAB Answer Bot 2021-8-20
Hello, I am creating GUI that has one pop-up menu. I have trouble getting n-th option that user chooses. For example, if my menu is
dog
cat
tiger
lion
when I user picks 'cat' from the option and presses pushbotton, I somehow need to obtain number 2, the n-th option under the popup menu.
Is there any way to do this? If there is, please help.

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-6-2
get(handles.popup1,'value')

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by