title: Speed up PLY file reading
body: <p>Currently I use the following code segment in MATLAB to read a PLY into a MATLAB matrix. <a href="http://wikisend.com/download/891702/testPly.ply" rel="nofollow noreferrer">Here is a sample PLY file</a>. But it take a considerable time when the size of the PLY file is quite large. </p>
  
  <p>Is there a better way to read a text file efficiently in MATLAB? </p>
  
  <pre><code>data = textread(fileName, '%s','delimiter', '\n');
  data = data(15:length(data),1);
  data = (cellfun(@(x) strread(x,'%s','delimiter',' '), data, 'UniformOutput', false));
  </code></pre>
  
  <p>(This question is a part of my previous question listed <a href="https://stackoverflow.com/questions/33445935/speed-up-for-loop-in-matlab/33446208?noredirect=1#comment54689342_33446208">here</a>.)</p>