Specify legends for a plot.
legends(legendString, legendType)
legendString A array of strings to be used for drawing legends in the current plot.
legendtype A scalar integer to specify the location of the legend.

The legend location can be specified to place the rectangle enclosing the legends at one of corners of the main box enclosing the plots (Legends.NW for upper-right, Legends.NE for upper left, Legends.SE for bottom left and Legends.SW for bottom right corner of the box, and Legends.OUTSIDE for outside it on the top right corner).