r = bitcmp(A)
r = bitcmp(A, assumedtype)
| Parameter | Description |
|---|---|
| A | an integer array, or a double with nonnegative integer values. |
| assumedtype | an integer class name used to interpret a double A. |
| Parameter | Description |
|---|---|
| r | the bitwise complement of A. |
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.
bitcmp(uint8(5))
| Version | Description |
|---|---|
| 2.0.0 | initial version |