title: Fastest way to find rows without NaNs in Matlab
body: <p>I would like to find the indexes of rows without any NaN in the fastest way possible since I need to do it thousands of times. So far I have tried the following two approaches:</p>
  
  <pre><code>find(~isnan(sum(data, 2)));
  find(all(~isnan(data), 2));
  </code></pre>
  
  <p>Is there a clever way to speed this up or is this the best possible? The dimension of the data matrix is usually thousands by hundreds.</p>