MATLAB: Size fontsize 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 ? Best Answer 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']) Related SolutionsMATLAB: GUIquestion Your position of [350 650 400 30] is placing the box and text outside the figure.USe:str1 = uicontrol('unit','pixel','style','text','fontsize',20,'String','Please choose the scen1e number','position',[20 200 400 50],'units','normalized','backgroundColor',[1,0.3,0.3]) MATLAB: How to use set to change a property of a uicontrol Changeaddstring = {get(texth, 'String')};toaddstring = get(texth, 'String'); Related QuestionReceiving non-existent field error in GUI even though it existsHow to set BackgroundColor on edit text using thecode and fix 1 errorGUI callbacksButton question
Best Answer