title: How do I Label colorbar ticks in MATLAB?
body: <p>I want to manually set my <code>colorbar's</code> tick labels and its position horizontal. For example:</p>
  
  <pre><code> Min=0.8;       
   Max=12;    
   h = colorbar('horiz');       
   set(h,'location','southoutside')
   set(h,'XTickLabel',{num2str(Min),'mm'  ,num2str(Max)})
  </code></pre>
  
  <p>However, the above code repeats the tick labels label. How can I set number of  tick  manually?
  I want my <code>colorbar</code> to appear something like the following:</p>
  
  <pre><code>****----------------****         //colorbar
  min        [mm]           max
  </code></pre>