title: How to create a FIFO queue to a cell array of cell arrays in MATLAB?
body: <p>Let's say that we have a cell array of cell arrays, called Q, a &lt;1x3256 cell>, and each cell is a cell array like this one below, for example:</p>
  
  <blockquote>
    <blockquote>
      <p>Q{1}{1}</p>
    </blockquote>
  </blockquote>
  
  <p>ans =</p>
  
  <pre><code> 0   451     0
  </code></pre>
  
  <p>etc. The problem is, that i want to create a FIFO queue in order to "clear" every cell and send the contents of each cell to another function (in the above cell the values 0 451 0), one by one each time. It is essential to use a FIFO queue and only, because it is a part of an implementation of a specific algorithm. 
  If possible, i would rather not to use Java in Matlab, like LinkedList, as i have already read in other topics.</p>
  
  <p>How could i do that FIFO queue with this cell array of cell arrays?Any ideas? Any help would be really appreciated.</p>