title: Test if any element of a vector equals 1
body: <p>I am trying to use the find operator in Matlab as a boolean and Im wondering if its even possible, if so how so?</p>
  
  <p>This is what I am trying to do</p>
  
  <pre><code>//If The second column in X contains a 1, do something
  if(find(X(:,2) == 1) == true)
  //do something
  </code></pre>