title: How to textscan with multiple delimiters
body: <p>I am trying to read in a file with contains thousands of lines of the format:</p>
  
  <pre><code>AAAAAAAA    2013.99.2314.029    0    OFF    N
  </code></pre>
  
  <p>Which is a tab delimited file. The last column is a don't care. The two columns before that are variable, so I read them as strings. My main problem is the second column. It is a number that is divided into several parts</p>
  
  <pre><code>2013.99.2314.029
  </code></pre>
  
  <p>is year 2013, day 99, second 2314.029.</p>
  
  <p>I want to use textscan to read in the whole file at once, but somehow split that complicated date string as I read it in.</p>
  
  <p>Currently I have the scan string:</p>
  
  <pre><code>SCAN_STR = '%s\t%f.%f\t%s\t%s\t%*s'
  </code></pre>
  
  <p>Which reads the date string into two floats. What I'd really like is to read it into two ints and a float. But using </p>
  
  <pre><code>SCAN_STR = '%s\t%d.%d.%f\t%s\t%s\t%*s'
  </code></pre>
  
  <p>Truncates it to 2013 and 2314 and messes up the rest of the line. I tried escaping the '.' with '.' but that pops an error.</p>
  
  <p>Any suggestions? I'd like to do this as it's scanned in due to the large size of the file. Memory runs low when you start trying to change the types of large data sets.</p>
  
  <p>EDIT:</p>
  
  <p>Really I need a scan string for 2013.99.2314.029 to return two integers and a float. </p>
  
  <pre><code>'%d.%d.%f'
  </code></pre>
  
  <p>Doesn't work. Nor does using delimiter as '.'. I tried %u as well. It rounds the decimal as it reads them in.</p>
  
  <p>Le sigh.</p>