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!

 採用された回答

Fangjun Jiang
Fangjun Jiang 2022 年 3 月 23 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by