title: Custom X-axis in errorbar in matlab?
body: <p>I am trying to customize X-axis range according to the X values, but it doesn't work. In the figure below, the first vertical line should map to 9, then second one 15, and 23 to the last one.
  I tried the following:</p>
  
  <pre><code>%  use errorbar(x,y,...)
  XLABEL=[9 15 23];
  set(gca, 'Ticklength', [0 0]);
  set(gca,'XTickLabel',XLABEL);
  set(gca,'XTick',XLABEL );
  </code></pre>
  
  <p>Anyone can help or give any tips ?.</p>
  
  <p><img src="https://i.stack.imgur.com/9Kszj.jpg" alt="enter image description here"></p>