title: How to read till end of file in MATLAB?
body: <p>I have a file <code>a.txt</code>:</p>
  
  <pre><code>03,17.406199
  05,14.580129
  07,13.904058
  11,14.685388
  15,14.062603
  20,14.364573
  25,18.035175
  30,21.681789
  50,22.662820
  </code></pre>
  
  <p>The number of rows in the file are not known. I want to read the file and store </p>
  
  <pre><code>3
  5
  7
  11
  15
  20
  30
  50
  </code></pre>
  
  <p>in one array and the float values in another.</p>
  
  <p><strong>How do I read in a file when the length of data is not known?</strong></p>