set bit at specified position
y = bitset(x, pos) y = bitset(x, pos, v)
a m-by-n matrix of doubles
or a m1-by-m2-by-...-by-mm hypermatrix of doubles
or a m-by-n matrix of unsigned integers (uint8, uint16 or uint32).
Must contain positive integer values.
a m-by-n matrix of doubles
or a m1-by-m2-by-...-by-mm hypermatrix of doubles
or a m-by-n matrix of unsigned integers (uint8, uint16 or uint32).
Must contain positive integer values.
The input pos must be in the range 1,2,...,bitmax
where bitmax is the maximum number of bits in x.
a m-by-n matrix of doubles
or a m1-by-m2-by-...-by-mm hypermatrix of doubles
or a m-by-n matrix of unsigned integers (uint8, uint16 or uint32). Default v=1.
Must contain positive integer values.
a m-by-n matrix of doubles
or a m1-by-m2-by-...-by-mm hypermatrix of doubles
or a m-by-n matrix of unsigned integers.
Set the bit at specified position pos.