# Doug's MATLAB Video Tutorials

## How to label a series of points on a plot in MATLAB.

This video shows how to put an individual text label on each of a series of points.

This video also shows a simple technique for understanding lines of code where there are many functions acting as inputs to other functions.

The question was original posted on Stack Overflow by Katie Banks and answered by Amro

### One Response to “How to label a series of points on a plot in MATLAB.”

1. Yvan Lengwiler replied on :

Thank you, Doug. May I point out a little function that I made that does just that, and also adds a large selection of options? Maybe some of your readers are interesed. See ‘lscatter’ on the FEX, http://www.mathworks.com/matlabcentral/fileexchange/28079-lscatter-scatter-plot-with-labels-instead-of-markers

 Name (required) E-mail (required, will not be published) Website (optional) Spam protection (required): What is 4 + 9 ?

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>


If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

These postings are the author's and don't necessarily represent the opinions of MathWorks.