title: Plot inside a loop in MATLAB
body: <p>I am doing something like this:</p>
  
  <pre><code>a = [1:100];
  for i=1:100,
      plot([1:i], a(1:i));
  end
  </code></pre>
  
  <p>My issue is that the plot is not shown until the loop is finished.
  How can I show/update the plot in every iteration?</p>