title: Load CSV with text qualifier into MATLAB/Octave
body: <h2>Data</h2>
  
  <p>Assume the following data format (with a header line in the first row, 500+ rows):</p>
  
  <pre><code>1, "&lt;LastName&gt; ,&lt;Title&gt;. &lt;FirstName&gt;", &lt;Gender&gt;, 99.9
  </code></pre>
  
  <h2>My Code</h2>
  
  <p>I've tried this <strong>(IGNORE: see edit below)</strong>:</p>
  
  <p><code>[flag, name, gender, age] = textread('file.csv', '%d %q %s %f', 'headerlines', 1);</code></p>
  
  <h2>The Error</h2>
  
  <p>...and get the following error message</p>
  
  <pre><code>error: textread: A(I): index out of bounds; value 1 out of bound 0
  error: called from: 
  error:   C:\Program Files\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\io\textread.m at line 75, column 3
  </code></pre>
  
  <h2>Questons:</h2>
  
  <ul>
  <li>Is my format string incorrect given the text qualifier (and the comma embedded in the "name" string)?</li>
  <li>Am I even using the correct method of loading a CSV into MATLAB\Octave?</li>
  </ul>
  
  <h1>EDIT</h1>
  
  <p>I forgot the delimiter (error message returns failure on different line in strread.m):</p>
  
  <pre><code>[flag, name, gender, age] = textread('file.csv', '%d %q %s %f', 'headerlines', 1, 'delimiter', ',');
  </code></pre>