|MATLAB Function Reference|
Add title to current axes
Each axes graphics object can have one title. The title is located at the top and in the center of the axes.
title(' outputs the string at the top and in the center of the current axes.
evaluates the function that returns a string and displays the string at the top and in the center of the current axes.
title(...,' specifies property name and property value pairs for the text graphics object that
h = title(...)
returns the handle to the text object used as the title.
Display today's date in the current axes:
Include a variable's value in a title:
Include a variable's value in a title and set the color of the title to yellow:
Include Greek symbols in a title:
Include a superscript character in a title:
Include a subscript character in a title:
The text object
String property lists the available symbols.
title sets the
Title property of the current axes graphics object to a new text graphics object. See the text
String property for more information.
Annotating Plots for related functions
Adding Titles to Graphs for more information on ways to add titles.