title: Setting alpha of colorbar in MATLAB R2014b
body: <p>I have a colorplot (from imagesc) with an alpha map. I'd like the colorbar to reflect the alpha (notice that in the image below the colormaps are the same). I found solutions online but none seem to work in R2014b.</p>
  
  <p>Code is here:</p>
  
  <pre><code>subplot(2,1,1)
  A = imagesc(meshgrid(0:10,0:5));
  alpha(A,1)
  colorbar
  
  subplot(2,1,2)
  B = imagesc(meshgrid(0:10,0:5));
  alpha(B,.7)
  colorbar
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/20vdv.png" alt="Same colormap - different alphas."></p>
  
  <p>James</p>