Adding Legends to Graphs
Legends identify each data set plotted in your graph. In a legend, MATLAB includes a small sample of the line or marker used to represent each data set in the graph, in the same color and style as it appears in the graph. MATLAB also includes a text label to identify each data set.
This section includes these topics:
|Note The legend is implemented as a separate axes overlaying the axes it describes. The legend axes is not anchored to the main axes. If you resize or move the main axes, or create new subplots, you may need to reposition the legend.|
|Using the title Function||Using the Legend Option on the Insert Menu|