title: What is another similar logic that is faster than ismember?
body: <p>Continue my research,</p>
  
  <p>I need another similar logic with <code>ismember</code> that has execution time faster. 
  this part of my code and the matrix.</p>
  
  <pre><code>StartPost =
  
      14    50    30     1    72    44    76    68    63    80    25    41;
      14    50    30     1    61    72    42    46    67    77    81    27;
      35    23     8    54    19    70    48    75    66    79     2    84;
      35    23     8    54    82    72    78    68    19     2    48    66;
      69    24    36    52    63    47     5    18    11    82     1    15;
      69    24    36    52    48    18     1    12    80    63     6    84;
      73    38    50     7     1    33    24    68    29    20    62    84;
      73    38    50     7    26    61    65    32    22    18     2    69]
  
  for h=2:2:8,
      ...
         done=all(ismember(StartPost(h,1:4),StartPost(h-1,1:4)));
      ...
  end
  </code></pre>
  
  <p>I checked that code by using Profile viewer. I got that in this part that made my code took time execution slowly.</p>
  
  <p>Anyone has experience about this logic, please share. thanks</p>