title: how to modify chart axis in matlab?
body: <p>Is it possible to put character instead of numbers in XData axis in matlab? 
  For example in this chart,
  <img src="https://i.stack.imgur.com/ZKITF.jpg" alt="simple chart"></p>
  
  <p>I want to replace <code>1 2 3</code> with <code>string 1 string 2 string 3</code> for the X axis.</p>
  
  <p>My code is </p>
  
  <pre><code>a=bardata ;
  b=barerror ;
  ctrs = 1:3;
  data = a;
  figure(1)
  hBar = bar(ctrs, data);
  markers = {'x','o','^'};
  ctr = [];
  ydt = [];
  for k1 = 1:size(a,2)
      ctr(k1,:) = bsxfun(@plus, hBar(1).XData, [hBar(k1).XOffset]');
      ydt(k1,:) = hBar(k1).YData;
  end
  hold on
      errorbar(ctr', ydt', b, '.r')
      legend({'Version 1', 'Version 2'}, 'location', 'northeast');
  hold off
  </code></pre>