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!