XOR
![]() |
![]() |
| Vector | C | ST | |
| in the palette | on the schematic |
The block performs the operation of element-by-element XOR (⊻, excluding OR) for input signals. By default, the block implements the operation for two input signals:

where y(t) is the output signal of the block, x1(t), x2(t) are the input signals (scalar values). Algorithm of operation for the number of input signals, more than two:


where y(t) is the output signal of the block, x1(t), x2(t) are the input signals (scalar values). Algorithm of operation for the number of input signals, more than two:

Inputs
- u_n - the n-th input port of the block. The number of input ports is configured in the block properties.
Outputs
- Y - operation result.
Properties
- Number of ports – specifies the number of block input ports.
Parameters
none

