title: Live Script with animation
body: <p>MATLAB 2016a introduced <a href="http://www.mathworks.com/help/matlab/live-scripts.html" rel="nofollow noreferrer">Live Scripts</a>, allowing to show plotting output next to the script. Is it somehow possible to show animations? For example, the following code in a regular script will plot a few points and then rotate the <code>axes</code>:</p>
  
  <pre><code>x = rand(10, 3);
  plot3(x(:, 1), x(:, 2), x(:, 3), 'o')
  for ii = 1:360
      camorbit(1, 10*cos(ii/90*pi)*pi/45)
      drawnow
      pause(0.01)
  end
  </code></pre>
  
  <p>If this is embedded in a Live Script, the initial plot is shown, then seemingly nothing happens while the loop is running, then the last aspect (which is the same as the original plot) is shown in a new display item.</p>
  
  <p>Alternatively, is there an option to interact with the plots in a live script (other than double-clicking to open the plot in a new figure)? E.g. <code>rotate3d</code> does not have an effect.</p>
  
  <p><strong>Edit:</strong> As of release 2019a, animations are possible as per <a href="https://ch.mathworks.com/help/matlab/release-notes.html" rel="nofollow noreferrer">release notes</a>.</p>