Filter löschen
Filter löschen

get all the handles value from a form

3 Ansichten (letzte 30 Tage)
amira fauzey
amira fauzey am 5 Nov. 2016
Beantwortet: Guillaume am 5 Nov. 2016
how to get a value from all handles in a form something like in vbnet for each ctl in control next

Antworten (1)

Guillaume
Guillaume am 5 Nov. 2016
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)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by