Borrar filtros
Borrar filtros

Change properties of multiple components programmatically

1 visualización (últimos 30 días)
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!

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 23 de Mzo. de 2022
Yes. Simpliest example
a=uibutton;
b=uibutton;
set([a,b],'BackgroundColor','green')

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by