bitget
bit at specified position
Syntax
y = bitget(x, pos)
Parameters
- x :
a
m-by-nmatrix of doubles or am1-by-m2-by-...-by-mmhypermatrix of doubles or am-by-nmatrix of unsigned integers (uint8,uint16oruint32). Must contain positive integer values.- pos :
a
m-by-nmatrix of doubles or am1-by-m2-by-...-by-mmhypermatrix of doubles or am-by-nmatrix of unsigned integers (uint8,uint16oruint32). The inputposmust be in the range 1, 2, ...,bitmaxwherebitmaxis the maximum number of bits inx. Must contain positive integer values.- y :
a
m-by-nmatrix of doubles or am1-by-m2-by-...-by-mmhypermatrix of doubles or am-by-nmatrix of unsigned integers.
Description
Given an unsigned integer x, this function returns an unsigned integer y
(0 or 1) which is the bit number pos from the representation binary of x.
Comments
Add a comment:
Please login to comment this page.