title: why textscan only read one line
body: <p>I am trying to read a csv file use textscan. The fields are seperated with ',' . I used the following code, but it only read in one line of data into the matrix W.</p>
  
  <p>I also tried dlmread(), it got the number of fields wrong.</p>
  
  <p>The file is contructed under linux, matlab is under linux.</p>
  
  <pre><code>file_id = fopen('H:\data\overlapmatrices\cos.mat.10');
  W = textscan(file_id, '%f', 'delimiter', ',' , 'EndOfLine', '\r\n');
  fclose(file_id);
  clear file_id;
  </code></pre>