title: scatter plot with its own ID
body: <p>i am trying to plot data labels in a scatterplot.
  For example i have vector</p>
  
  <pre><code>X=[0,1,2,3,4,2,1,0];
  Y=[0,9,2,6,2,1,1,0];
  z = 1:size(X,2);
  scatter (X,Y)
  </code></pre>
  
  <p>i am using</p>
  
  <pre><code>   for A = 1:size(X,2);
     text(X(A),Y(A),z(A));
     end;
  </code></pre>
  
  <p>however MATLAB state that Error using ==> text String argument expected after 2 or 3 numeric arguments</p>
  
  <p>What should i do to add the ID in each pairs of x and y and also how to display the ID that has the same value of X and Y.</p>
  
  <p>Thanks a lot in advance.</p>