Change properties of multiple components programmatically

Hi,
is there a way to programmatically change the properties of a group of components similiar to using css selectors in HTML?
e.g. change the background color of all components with the type "uibutton" and "uilabel"
thanks in advance!

 Accepted Answer

Yes. Simpliest example
a=uibutton;
b=uibutton;
set([a,b],'BackgroundColor','green')

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!