Hi, how can I set pop up menu for example to choise 2 ?
Value={2}; set(handles.popupmenu,'Value');
But this doesn't work. :-(

 Akzeptierte Antwort

Jiro Doke
Jiro Doke am 22 Feb. 2012

1 Stimme

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.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by