=

logical OR operator

Calling Sequence

A|B

Description

A|B gives the element-wise logical or of the booleans matrices A and B. A and B must be matrices with the same dimensions or one from them must be a single boolean.

Examples

[%t %t %f] | [%f %t %t]
[%t %t %f] | %f

See Also

  • or logical OR of the elements of an array
  • and logical AND of the elements of an array
  • `and operator (&)`_ logical AND operator
  • not (~) logical not
  • find find indices of boolean vector or matrix true elements

Table Of Contents

This Page