title: Matlab real time plot
body: <p>I'm new to matlab and I want to plot some data in real time.
  My approach was follows:</p>
  
  <pre><code>figure;
  hold on;
  
  for i = 1:1000;
     plot(i, i);
     drawnow;
  end
  </code></pre>
  
  <p>But it has poor performance.</p>
  
  <p>I also found a suggestion here on stackoverflow: <a href="https://stackoverflow.com/q/3118918/1066838">https://stackoverflow.com/q/3118918/1066838</a>
  but only the last set data are drawn, so I see always only one point on the figure.</p>