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!