title: Condition for columns based on same index as vector
body: <p>I'm trying to get a logical matrix as a result of a condition that is specific for each column <code>M(:,i)</code> of the original matrix, based on the value of the same index <code>i</code> in vector <code>N</code>, that is, <code>N(i)</code>.</p>
  
  <p>I have looked this up online, but can't find anything quite like it. There must be a simple and clean way of doing this.</p>
  
  <pre><code>M =
  
       3    -1   100     8
     200     2   300     4
     -10     0     0   400
  
  N =
  
       4     0    90     7
  </code></pre>
  
  <p>and my desired solution is, for each column of <code>M(:,i)</code>, the values less than <code>N(i)</code>:</p>
  
  <pre><code>     1     1     0     0
       0     0     0     1
       1     0     1     0
  </code></pre>