Software Techniques Inc. (www.stiwww.com) LabelLinePlots.m MATLAB function that allows the placement of labels directly on line plots. Works on both linear and log plots. In many cases graphs using LabelLinePlots can be easier to read than the MATLAB function LEGEND. Can be used instead of MATLAB function LEGEND when color is not available/desirable or when there are many lines on the same plot. An example would be when the plot is being sent to a non-color printer. LabelLinePlots accepts one input argument. The argument must be a string array with each row of the array containing 1 label. The string array can be constructed by the user using native MATLAB functions such as STRVCAT or using the function MAKEMAT.M which can also be downloaded from this site. Syntax LabelLinePlots(LegendArray,h) Code sample x = -pi:0.01:pi y1 = sin(x); y2 = cos(x); Labels = makemat('sin(x) cos(x)'); h = plot(x,y1,x,y2); LabelLinePlots(Labels,h) Users are encouraged to improve upon this function however you must reference Software Techniques Inc. as the original author and have a link in the M-file pointing to our site (www.stiwww.com). Likewise if we receive any major improvements to the M-file from you, the user we will do the same. I.e. your email address or website will also be noted in the comments of the M-file.