필터 지우기
필터 지우기

size

조회 수: 1 (최근 30일)
Pan
Pan 2012년 3월 6일
I want to ask about this
str1 = uicontrol('unit','pixel','style','text','stringsize','choose one scene!!',... 'position',[250 650 300 20],'units','normalized','backgroundColor',[0.4,1,0]);
the font size could change ?

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 3월 6일
Use the fontsize property. Also, use the string property for the string:
str1 = uicontrol('unit','pixel','style','text','fontsize',20,'string','choose one scene!!',...
'position',[250 250 300 20],'units','normalized','backgroundColor',[0.4,1,0]);
More info:
web([docroot '/techdoc/ref/uicontrol_props.html'])

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by