title: One number array, one logic array. If logic == 1 then use number value, if logic ==0 then return no value
body: <p>I have two matlab arrays, very large, over 41k rows each with 10 columns.</p>
  
  <p>I also have an array of the exact same size filled with 1's and 0's. I need to apply this logic array to the first array and if the value is logic true, pass the number, otherwise if false it must return NaN.</p>
  
  <p>using something like:</p>
  
  <pre><code>output= number(array)
  </code></pre>
  
  <p>Only gives an output of the positive logic array values but I need to keep the array the same size/structure, how can I do this?</p>