title: How to put date ticks on x axis in Matlab?
body: <p>I have a text file consisted of two columns , the first column contains the date (in this format yyyy-mm) and the second column is an integer . the text file is a matrix of 2*144 like this :</p>
  
  <pre><code>   1996-06   23
     1996-07   53
     1996-08   12
     1996-09   21
     ...
  </code></pre>
  
  <p>By importdata I just read the second column of the file and I do some operation over the second column but at last they still remain 144. I can plot the results with random numbers on x axis but I can't plot dates on x axis as I need a vector of the same size but I just want to tick 12 years from 1996 to 2007 not all the months on x axis .
  I'm a newie to MATLAB and I will appreciate any advice .</p>
  
  <p>Here is the complete version of my code and error and where I have found out the problem is that I need a matrix of 1*144 for dates :
  <a href="https://stackoverflow.com/questions/26240126/ploting-dates-on-x-axis-in-octave">Ploting dates on x-axis in octave</a> </p>