필터 지우기
필터 지우기

Setting numeric values in Pop-up Menu in Matlab Guide

조회 수: 1 (최근 30일)
pavikirthi
pavikirthi 2015년 10월 28일
댓글: pavikirthi 2015년 10월 28일
How to set numeric values from 1 to 10 in Pop-up menu and how to use this value from Pop-up Menu to Push Button when selected in Matlab Guide?

채택된 답변

Image Analyst
Image Analyst 2015년 10월 28일
To load the popup with numbers:
listItems = cell(10,1);
for k = 1 : 10
listItems{k} = num2str(k);
end
set(handles.popup1, 'String', listItems);
To get the index of the selected item:
get(handles.popup1, 'Value');

추가 답변 (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