next up previous contents
Next: GRID Plot Grid Toggle Up: Plot Functions Previous: LEGEND Add Legend to   Contents

Subsections

TITLE Plot Title Function

Usage

This command adds a title to the plot. The general syntax for its use is

  title('label')

or in the alternate form

  title 'label'

or simply

  title label

Here label is a string variable.

Example

Here is an example of a simple plot with a title.

--> x = linspace(-1,1);
--> y = cos(2*pi*x);
--> plot(x,y,'r-');
--> title('cost over time');

which results in the following plot.

9008



Samit K. Basu 2005-03-16