FUNCTION REFERENCE

bitor

Bitwise OR.

Bitwise OR.

Syntax

c = bitor(a, b)

Elementwise OR of nonnegative integers up to flintmax (2^53); one input may be

a scalar.

Example

bitor(12, 10)   % 14

Integer arrays use their stored class and retain exact 64-bit values; scalar expansion is supported.

Differences from MATLAB: Typed integer inputs use the two-input form; assumed-type options apply to double inputs.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.