Skip to content

bitget

general · scripts/general/bitget.m

: b = bitget (A, bit)
: b = bitget (A, bit, assumedtype)

Return the value (0 or 1) of bit position bit in A.

Bit 1 is the least significant bit. Double A is treated as "uint64" unless assumedtype names another integer class; the result for a double input is always double. Integer inputs may only be paired with an assumedtype that matches class (A).