title: Missing information after reading text file with textscan (Matlab)
body: <p>I am trying to read a comma delimited text file but there is information missing on my results.</p>
  
  <p>The following is an extract of my text file:</p>
  
  <pre><code>number,datetime start,datetime arrive
  4027,25/03/2016 11:20,25/03/2016 11:20
  4000,25/03/2016 11:20,25/03/2016 11:20
  4027,25/03/2016 11:21,25/03/2016 11:21
  4000,25/03/2016 11:21,25/03/2016 11:21
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>file = fopen('myfile.txt');
  TextCell=textscan(file,'%s');
  Text=TextCell{1}; 
  fclose(file);
  
  containsStr = ~cellfun('isempty',strfind(Text,'4027')); 
  FilteredText=Text(containsStr); % filters the strings that contain 4027
  </code></pre>
  
  <p>Results obtained:</p>
  
  <pre><code>4027,25/03/2016
  4027,25/03/2016
  </code></pre>
  
  <p>Results expected:</p>
  
  <pre><code>4027,25/03/2016 11:20,25/03/2016 11:20
  4027,25/03/2016 11:21,25/03/2016 11:21
  </code></pre>
  
  <p>Where is my mistake?</p>