title: Reposition colorbar or subplots
body: <p>I am trying to get a colorbar to reside to the right-hand-side of a series of four subplots.
  I'm using this code but the bar intersects with the last image as shown in this fig <img src="https://i.stack.imgur.com/dC1iX.png" alt="problem"></p>
  
  <pre><code>ax(1)=subplot(1,3,1);imagesc(stats.mean,[0 1]);colormap(jet(256)); title('mean');
  ax(2)=subplot(1,3,2);imagesc(stats.median,[0 1]);colormap(jet(256)); title('median');
  ax(3)=subplot(1,3,3);imagesc(stats.std,[0 1]);colormap(jet(256)); title('std');
  h=colorbar;
  set(h, 'Position', [.8314 .11 .0581 .8150]);
  for i=1:3
  pos=get(ax(i), 'Position');
  set(ax(i), 'Position', [pos(1) pos(2) 0.85*pos(3) pos(4)]);
  end;
  </code></pre>