title: Checking if table contains any element of a specific column in another table
body: <p>I want to check if a table column contains any of the elements in another table. Here's the tables:</p>
  <pre><code>list1 = [&quot;Hey&quot;;&quot;H&quot;;&quot;Say&quot;];
  list2 = [&quot;Ey&quot;;&quot;H&quot;;&quot;S&quot;];
  
  Table1 = table(list1);
  Table2 = table(list2); 
  </code></pre>
  <p>Now, to check if Table2 contains any of the items in Table1, I wrote this:</p>
  <pre><code>for i = 1:3
      if any(strcmp(Table1(:,1),Table2(i,1))) == 1
         disp(Table2(i))
      end
  end
  </code></pre>
  <p>The if-statement does not activate for some reason. Might be that the any(strcmp(...)) function does not print out 1 or 0 as I thought it would. It seems that it unputs the entire column and compares it to the one cell in table 2. I thought the &quot;any&quot; function would let the strcmp go through the items. Maybe I have to create a nested for loop to go through the other table for each table 2 items?</p>