Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Русский - 日本語
Ajuda do Scilab >> Funções Elementares > |

|

logical OR operator

Syntax

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 over the elements of a boolean or numerical array
  • and — logical AND between the elements of a boolean or numerical array
  • and operator (&) — logical AND operator
  • not — (~) não lógico
  • find — encontra índices de elementos verdadeiros em uma matriz ou vetor de booleanos
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:34:41 CEST 2016