Pop up menu

4 次查看(过去 30 天)
john
john 2012-2-22
Hi, how can I set pop up menu for example to choise 2 ?
Value={2}; set(handles.popupmenu,'Value');
But this doesn't work. :-(

采纳的回答

Jiro Doke
Jiro Doke 2012-2-22
Value = 2;
set(handles.popupmenu, 'Value', Value);
'Value' refers to the "Value" property of the pop up menu. The second Value refers to the actual value you want to set the "Value" property to.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by