title: Grouping Figures separately into windows and tabs
body: <p>I have 4 plots to make, of vectors y1, y2, y3 and y4, all as a function of a vector x. I would like the first two plots to be grouped as tabs within a single Figure window, and the next two plots also grouped as tabs but in a separate window.</p>
  
  <p>I tried this code:</p>
  
  <pre><code>figure
  set(0,'DefaultFigureWindowStyle','docked')
  plot(x,y1)
  plot(x,y2)
  figure
  set(0,'DefaultFigureWindowStyle','normal')
  plot(x,y3)
  set(0,'DefaultFigureWindowStyle','docked')
  plot(x,y4)
  </code></pre>
  
  <p>..but once tab grouping is re-enabled, plots are just added as new tabs appended to the old window rather than in a new window.</p>
  
  <p>I played around with the order of the commands above but it didnt help. If anything, I only managed to get one of the plots overwritten in the same window. Please note i don't want any of the graphs to overlap, therefore "hold on" would not help.</p>
  
  <p>Any suggestions? Thanks!</p>