title: Filter 'rows' in a Matlab structure
body: <p>I have structure with 10 fields of the same size. The structure was read from a data file. </p>
  
  <pre><code>dataFile = ezread('myFile','\t');
  </code></pre>
  
  <p>I get a specific field (double) and produce an index array for all rows which are bigger than 2.</p>
  
  <pre><code>a_field = dataFile.a_field;
  a = ismember(a_field,2:1000)
  </code></pre>
  
  <p>I could use 'a' to get all rows from another field where 'a_field' is bigger than 2. But how can I filter the complete structure? I would like to have a new structure which holds all rows from all fields where 'a_field' is bigger than 2.</p>
  
  <p>It's a basic question, but I can't find an easy way around.</p>