title: Cell array inside cell array order elements Matlab
body: <p>I have a cell array containing cells like the following:</p>
  
  <pre><code>A=
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;  &lt;1x4 cell&gt;
  </code></pre>
  
  <p>Each cell contains numerical values like <code>A{1,1}=[1.6386e+03]    [1589]    [406.9268]    [184.6770]</code></p>
  
  <p>Given that <code>a={'el1','el2','el3','el4'}</code>, i would like to obtain an output B of the form:</p>
  
  <pre><code>B{1}=[a;A{1,1};A{2,1};A{3,1}...]
  B{1}=
  'el1'   'el2'   'el3'   'el4'
  1638.60000000000    1589          406.926813049605                  184.676951989012
  1665.10000000000    1614.60000000000    399.333905068047    362.462074500098
  1709.60000000000    1657.80000000000    389.181059994089    529.870013181953
  ...
  
  B{2}=[a;A{1,2};A{2,2};A{3,2}...]
  ...
  </code></pre>
  
  <p>How can this be performed without writing every cell(i.e. A{1,1};A{1,2}...)</p>