title: ismember for string-matrix cell elements in MATLAB
body: <p>ismember checks for cell-array or matrix elements.  How do we check for string-numeric elements together?  Please see below:</p>
  
  <pre><code>cell1 = {'netincome' [1] ; 'equity' [2] }  ;
  
  cell2 = { 'cogs' [2222] [1] ; 'equity' [3501] [2] ; 
  
            'equity' [3333] [1] ; 'netincome' [1751] [1] } ;
  </code></pre>
  
  <p>This fails ->ismember(cell1(:,[1 2]), cell2(:,[1 3])  % I know why it fails.</p>
  
  <p>Is there any way to match string elements and numeric elements from 2 cells?  I tried using ismember independently (cell2mat func was used) but still can't hit the right answer.  The desired answer is: </p>
  
  <pre><code>[1751 ; 3501] ; OR 'netincome' [1751] [1] ; 'equity' [3501] [2] 
  </code></pre>