Graphics    

Using the title Function

To add a title to a graph at the MATLAB command prompt or from an M-file, use the title function. The title function lets you specify the value of title properties at the time you create it.

For example, the following code adds a title to the current axes and sets the value of the FontWeight property to bold.

To edit a title from the MATLAB command prompt or from an M-file, use the set function. See "Setting and Querying Object Properties" in the "Handle Graphics Objects" chapter for more information.


  Using the Property Editor to Add a Title Adding Legends to Graphs