title: Intersection of cell array in MATLAB
body: <p>I need to determine intersection of all cells in array cell. I use a command like this:</p>
  
  <pre><code>temp(j-1)={6 7 8 9 10};
  temp(j)= {8 9 10};
  
  inter =  cellfun(@intersect,temp(j-1),temp(j),'UniformOutput', false)  ;  
  </code></pre>
  
  <p>In the output I get:</p>
  
  <pre><code>inter={0189}
  </code></pre>
  
  <p>What should I do to get {8 9 10}? </p>
  
  <p>I have to use inter as a vector of indexes in another matrix.</p>