title: How do I select all non-NaN data from a specific column of a mxn array in as few steps as possible?
body: <p>So if it's just a 1D vector, I can simply do something like this:</p>
  
  <p>y1 = y(~isnan(y));</p>
  
  <p>But... What if y is a mxn matrix and I want all non-NaN data from y(:,5)? What can I then do, that takes as few extra steps as possible?</p>
  
  <p>I can assign y1 = y(:,5) and then call y1 = y(~isnan(y)). But I'd prefer to avoid assigning too many new variables if possible.</p>