title: Custom x-axis values in a matlab plot
body: <p>Currently when I plot a 9 by 6 array, the x-axis of the figure is just 1, 2, 3 up to 9. The Y-axis shows the correct values.</p>
  
  <p>Instead of 1 to 9 I would like the x-axis values to be custom. They should be </p>
  
  <blockquote>
    <p>100 200 400 1000 2000 5000 10000 20000 50000</p>
  </blockquote>
  
  <p>instead. I tried</p>
  
  <pre><code>set(gca,'XTick', [100 200 400 1000 2000 5000 10000 20000 50000])
  </code></pre>
  
  <p>But that's not the correct way to do it. Is there a <code>Matlab</code> option to have these custom values for the x-axis? Why is <code>Matlab</code> just using 1 to 9 anyway?</p>