bitcmp
Bitwise complement.
📝Syntax
r = bitcmp(A)
r = bitcmp(A, assumedtype)
📥Input Arguments
Parameter Description
A an integer array, or a double with nonnegative integer values.
assumedtype an integer class name used to interpret a double A.
📤Output Arguments
Parameter Description
r the bitwise complement of A.
📄Description

r = bitcmp(A) returns the bitwise complement of A, where the width is given by the integer class of A.

When A is a double, pass assumedtype (for example 'uint8') to set the bit width; the result stays double.

💡Examples
bitcmp(uint8(5))
🔗See Also
bitandbitorbitxor
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub