title: Matlab change a single point in a plot without replotting
body: <p>So I have a plot of N points in the 2D plane (N can be very large). I am writing a script that is to show the workings of an algorithm. So I have for loops. At each step in the for loop I'd like to change the color of the current point (actually probably make a stem plot with just this point).</p>
  
  <p>However, at the end of the step I'd like to remove the coloring of the current point so that I can color the next one. Currently I have to redraw the whole plot (incl. the 2D points). I'm not sure whether Matlab detects such things in the plotting commands but is there a way to do this without redrawing the whole plot?</p>
  
  <p>For example:</p>
  
  <pre><code>plot(x,y, '*');
  
  
  for j = 1:N-1
      for i = j:N
          hold on;
          %Do stuff
  
          plot(x,y, '*');
          hold on;
          stem(x(1), y(1), 'g*');
      end
  
  end
  </code></pre>