title: Matlab, how to filter a numeric vector by a condition?
body: <p>In Matlab, I have a vector, X, that contains N real values:</p>
  
  <ul>
  <li>0.001</li>
  <li>0.003</li>
  <li>0.006</li>
  <li>0.009</li>
  <li>0.007</li>
  <li>0.006</li>
  </ul>
  
  <p>I would like to create a new vector, Xb, that contains all the M values of X that are less than 0.005 (M &lt;= N).
  How could I do it?</p>
  
  <p>I've tried with:</p>
  
  <blockquote>
    <p>Xb = X&lt;0.005</p>
  </blockquote>
  
  <p>but it gives me a vector of N values 0s or 1s.</p>
  
  <p>Thanx</p>