Popup Menu problem in accessing the string
显示 更早的评论
I am using a popup menu that is populated with numbers 0-3 but when I access the numbers it returns the value instead of the string. Any one can help me in this regard.
Imran
1 个评论
回答(1 个)
I guess some details, perhaps it helps:
Value = get(popupMenuHandle, 'Value');
String = get(popupMenuHandle, 'String');
Selected = String{Value};
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!