필터 지우기
필터 지우기

Change properties of multiple components programmatically

조회 수: 1 (최근 30일)
Moritz Wahlenmeier
Moritz Wahlenmeier 2022년 3월 23일
답변: Fangjun Jiang 2022년 3월 23일
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일
Yes. Simpliest example
a=uibutton;
b=uibutton;
set([a,b],'BackgroundColor','green')

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by