フィルターのクリア

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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by