bitor
Bitwise or.
z=bitor(x,y)
Inputs
x A one dimensional integer array or scalar.
y A one dimensional integer array of the same size as x or a scalar.
Outputs
z An integer array. If x is an array, z is of the same size as x . Otherwise the size of z is same as the size of y .


Description
Each element of the output is bit-wise or of the corresponding elements of the input arrays. If one of the elements is scalar the bit-wise or operator is applied to the scalar and each element of the other array.
Example
>>bitor([1 2 4 5],[ 11 26 64 8])  
         11         26         68         13

>>a=round(randn(3,2,4));
>>a
[:,1:2, 1]
         0   -1.0000
         0         0
         0   -1.0000
[:,1:2, 2]
         0    2.0000
    2.0000    1.0000
         0         0
[:,1:2, 3]
    1.0000   -1.0000
         0    2.0000
         0   -1.0000
[:,1:2, 4]
         0         0
   -1.0000         0
         0   -1.0000

>>bitor(a,4)
[:, :, 1]
         4        -1
         4         4
         4        -1
[:, :, 2]
         4         6
         6         5
         4         4
[:, :, 3]
         5        -1
         4         6
         4        -1
[:, :, 4]
         4         4
        -1         4
         4        -1