title: How do you create a matrix from a text file in MATLAB?
body: <p>I have a text file which has 4 columns, each column having 65536 data points. Every element in the row is separated by a comma. For example:</p>
  
  <pre><code>X,Y,Z,AU
  4010.0,3210.0,-440.0,0.0
  4010.0,3210.0,-420.0,0.0
  etc.
  </code></pre>
  
  <p>So, I have <strong>65536</strong> rows, each row having 4 data values as shown above. I want to convert it into a matrix. I tried importing data from the text file to an excel file, because that way its easy to create a matrix, but I lost more than half the data.</p>