How can I remove the Default selection in Listbox GUI?
15 ビュー (過去 30 日間)
古いコメントを表示
Vinayak Appasaheb Bhatte
2018 年 7 月 18 日
コメント済み: Vinayak Appasaheb Bhatte
2018 年 7 月 20 日
I always see the top option in the listbox is default selected. How to remove this default selection?
Please help me. I checked the property inspector but couldn't find any solution. Thanks!
0 件のコメント
採用された回答
Adam Danz
2018 年 7 月 20 日
編集済み: Adam Danz
2018 年 7 月 20 日
If you'd rather have the 2nd one as default set the 'Value' property to 2.
If you want there to be no default, set the 'Value' property to an empty matrix and set the 'Max' and 'Min' properties to satisfy the following condition:
Max - Min > 1
10 件のコメント
Adam Danz
2018 年 7 月 20 日
You need to set that value either 1) when you are creating the listbox (as in my example) or 2) in the properties menu if you're using GUIDE.
You can also change the 'value' setting any time by using the handle to the listbox.
either
lb.Value = [];
or
set(lb, 'Value', [])
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!