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.

titlePurpose2titleAdd title to current axesSyntaxDescriptiontitle('string')title(fname)title(...,'PropertyName',PropertyValue,...)h = title(...)Each axes graphics object can have one title. The title is located at the top andin the center of the axes.title('string') outputs the string at the top and in the center of the currentaxes.title(fname) evaluates the function that returns a string and displays thestring at the top and in the center of the current axes.title(...,'PropertyName',PropertyValue,...) specifies property nameand property value pairs for the text graphics object that title creates.h = title(...)returns the handle to the text object used as the title.ExamplesDisplay today’s date in the current axes:title(date)Include a variable’s value in a title:f = 70;c = (f—32)/1.8;title(['Temperature is ',num2str(c),'C'])Include a variable’s value in a title and set the color of the title to yellow:n = 3;title(['Case number #',int2str(n)],'Color','y')Include Greek symbols in a title:title('\ite^{\omega\tau} = cos(\omega\tau) + isin(\omega\tau)’)Include a superscript character in a title:title('\alpha^2’)2-523

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

Saved successfully!

Ooh no, something went wrong!