Change properties of multiple components programmatically
1 回表示 (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
採用された回答
Fangjun Jiang
2022 年 3 月 23 日
Yes. Simpliest example
a=uibutton;
b=uibutton;
set([a,b],'BackgroundColor','green')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!