title: Reading CSV files with MATLAB?
body: <p>I am trying to read in a .csv file with MATLAB. Here is my code:</p>
  
  <pre><code>csvread('out2.csv')
  </code></pre>
  
  <p>This is what out2.csv looks like:</p>
  
  <pre><code>03/09/2013 23:55:12,129.32,129.33
  03/09/2013 23:55:52,129.32,129.33
  03/09/2013 23:56:02,129.32,129.33
  </code></pre>
  
  <p>On windows I am able to read this exact same file with the xlsread function with no problems. I am currently on a linux machine. When I first used xlsread to read the file I was told "File is not in recognized format" so I switched to using csvread. However, using csvread, I get the following error message:</p>
  
  <pre><code>Error using dlmread (line 139)
  Mismatch between file and format string.
  Trouble reading number from file (row 1u, field 2u) ==&gt; /09/2013
  23:55:12,129.32,129.33\n
  
  Error in csvread (line 48)
  m=dlmread(filename, ',', r, c)
  </code></pre>
  
  <p>I think the '/' in the date is causing the issue. On windows, the 1st column is interpreted as a string. On linux it seems to be interpreted as a number, so it tries to read the number and fails at the backslash. This is what I think is going on at least. Any help would be really appreciated.</p>