12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

uisetfontExampleThese statements create a text object, then display a dialog box (labeled UpdateFont) that enables you to change the font characteristics:h = text(.5,.5,'Figure Annotation');uisetfont(h,'Update Font')These statements create two push buttons, then set the font properties of onebased on the values set for the other:% Create push button with string ABCc1 = uicontrol('Style', 'pushbutton', ...'Position', [10 10 100 20], 'String', 'ABC');% Create push button with string XYZc2 = uicontrol('Style', 'pushbutton', ...'Position', [10 50 100 20], 'String', 'XYZ');% Display set font dialog box for c1, make selections, save to dd = uisetfont(c1)% Apply those settings to c2set(c2, d)See Alsoaxes, text, uicontrol2-574

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!