title: How to use stings as ticks on plots?
body: <p>If both the x and y axis are numbers, I can display text on the plot by using the functions <code>num2str</code>, <code>cellstr</code>, and <code>strtrim</code>. These functions format the coordinate values into a cell array of strings, which can then be displayed with the function <code>text</code>:</p>
  
  <pre><code>strValues = strtrim(cellstr(num2str(
    [X(:) Y(:)],
    '(%d,%d)'
  )));
  text(
    X,
    Y,
    strValues,
   'VerticalAlignment',
   'bottom'
  );
  </code></pre>
  
  <p>But what if the x axis contains strings instead of numbers?</p>
  
  <pre><code>X=['john' 'jack' 'mary'.....] 
  Y=[0 1 2 3]
  </code></pre>
  
  <p>How do I then show the y values on all of the data plots?</p>