title: Simple indexing in a cell array
body: <p>I've constructed a simple Matlab cell array:</p>
  
  <pre><code>d1 =
   1
   2
   3
   4
   5
  
  d2 =
   2
   3
   4
   5
   6
  
  d3 =
   3
   4
   5
   6
   7
  
  d = 
  [5x1 double]
  [5x1 double]
  [5x1 double]
  
  clear d1 d2 d3;
  </code></pre>
  
  <p>How do I access the original array d1 data inside cell array d, after d1 is cleared? If I do:</p>
  
  <pre><code>&gt;&gt; d(1,:)
  ans = 
  [5x1 double]
  </code></pre>
  
  <p>but what I want to do is issue this command:</p>
  
  <pre><code>d(what indexing goes here?) 
  </code></pre>
  
  <p>and have it return:</p>
  
  <pre><code>1 2 3 4 5
  </code></pre>