MATLAB Functions | Help Desk |
title
Add title to current Axestitle('Each Axes graphics object can have one title. The title is located at the top and in the center of the Axes.string
') title(fname) title(...,'PropertyName
',PropertyValue,...) h = title(...)
title('string
')
outputs the string at the top and in the center of the current Axes.
title(fname)
evaluates the function that returns a string and displays the string at the top and in the center of the current Axes.
title(...,'PropertyName
',PropertyValue,...)
specifies property name and property value pairs for the Text graphics object that title
creates.
h = title(...)
returns the handle to the text object used as the title.
Display 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')
title
sets the Title
property of the current Axes graphics object to a new Text
graphics object.
gtext
, int2str
, num2str
, plot
, text
, xlabel
, ylabel
, zlabel