get all the handles value from a form
2 ビュー (過去 30 日間)
古いコメントを表示
how to get a value from all handles in a form something like in vbnet for each ctl in control next
0 件のコメント
回答 (1 件)
Guillaume
2016 年 11 月 5 日
Note: There are no forms in matlab, only figures.
Probably the simplest to get the controls of the figure is to retrieve the content of the Children property of the figure. Note however that it will return not only uicontrol, but uipanels, axes, etc.
fighandle.Children
Another option is to use findobj:
findobj(fighandle, 'Type', 'uicontrol')
Finally, there's findall which will return the whole hierarchy content, including hidden handles
findall(fighandle.Children)
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!