Creating Buttons with GUIDE

2 ビュー (過去 30 日間)
Bradley Flynn
Bradley Flynn 2016 年 5 月 16 日
回答済み: Walter Roberson 2016 年 5 月 16 日
I'm not sure where to look for this, but basically I'm trying to create a radio button selection where a user could select what webcam they would like to use that's connected to their computer. Is there a way to make a dynamic radio button(s)? Everything I've seen so far has been a static... (I'm using guide by the way)

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 5 月 16 日
Have the code call uibuttongroup() to construct the button manager.
Have the code call uicontrol('style','radio') with appropriate Position information and with Parent set to the uibuttongroup.
Because the user could have an indefinite number of webcam (people have posted with configurations of up to 14 webcams), you need an indefinite amount of space for all of those buttons. For this reason it is more common to use a drop-down menu to select the camera.

カテゴリ

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