title: Extract data from a Cell Array using a vector and converting into an array
body: <p>I have a cell array [5x1] which all cells are column vectors such as:</p>
  
  <pre><code>exInt =
  
      [46x1 double]
      [54x1 double]
      [40x1 double]
      [51x1 double]
      [ 9x1 double]
  </code></pre>
  
  <p>I need to have a vector (vec) containing the cells in extInt I need to extract and then I have to convert these into a single column array. Such as:</p>
  
  <pre><code>    vec = [1,3];
      Output = cell2mat(extInt{vec})
  </code></pre>
  
  <p>Output should become something an array [86x1 double].</p>
  
  <p>The way I have coded I get:</p>
  
  <pre><code>Error using cell2mat
  Too many input arguments.
  </code></pre>
  
  <p>If possible, I would like to have a solution not using a loop.</p>