Graphics Previous page   Next Page

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.

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.


Previous page  Using the Property Editor to Add a Title Adding Axis Labels to Graphs Next page

© 1994-2005 The MathWorks, Inc.