title: Speed up table filtering in Matlab
body: <p>Let <code>A</code> be a table in Matlab. Is there a <strong>quick</strong> way of accessing subsets of this table? Say all entries for which a certain column contains numbers in a range or such. The problem is that <code>A</code> is very large and I evaluate <code>A(A.col1 == i,:)</code> very often.</p>
  
  <p>I then use the following simplified code to </p>
  
  <pre><code>B = zeros(1,N);
  for i=1:N
       temp = A(A.col1 == i,:);      % this line is evaluated often and takes a lot of time since A is big table
       B(i) = FancyFunction(temp);
  end
  </code></pre>
  
  <p>So, is there a <strong>quick</strong> alternative to <code>A(A.col1 == i,:)</code> or <code>A(ismember(A.col1,x),:)</code>?</p>