Set list box

조회 수: 7 (최근 30일)
john
john 2012년 3월 1일
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일
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개)

카테고리

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