Hi,
I have number 5. How can I set up items of the listbox or popupmenu like this:
1
2
3
4
5
? Thanks

 채택된 답변

Sean de Wolski
Sean de Wolski 2012년 3월 1일

1 개 추천

n = 5;
uicontrol('style','list','string',num2cell((1:n).'))

댓글 수: 1

john
john 2012년 3월 1일
1. from listbox can I get the value? x=get(handles.listbox,'Value');
if (x == 1)........?
2. and how can I set number 5 to popupmenu?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by