title: Bitwise commands such as Bitor with many inputs?
body: <p>Matlab takes only two inputs with bitwise commands such as <a href="http://www.mathworks.com/help/matlab/ref/bitor.html" rel="nofollow"><code>bitor</code></a>. <code>bitor(1,2)</code> returns <code>3</code> and <code>bitor(1,2,4)</code> does not return <code>7</code> but: </p>
  
  <blockquote>
    <p>ASSUMEDTYPE must be an integer type name. </p>
  </blockquote>
  
  <p>Currently, I create for-loops to basically create a bitwise command to take as many inputs as needed. I feel the for-loops for this kind of thing is reinvention of the wheel.<br></p>
  
  <p>Is there some easy way of creating the bitwise operations with many inputs?</p>
  
  <p><strong>Currently</strong> an example with some random numbers, must return 127</p>
  
  <pre><code>indices=[1,23,45,7,89,100];
  indicesOR=0;
  for term=1:length(indices)
      indicesOR=bitor(indicesOR,indices(term));
  end
  </code></pre>