- Scilab Help
- Elementary Functions
- Bitwise operations
- Complex
- Discrete mathematics
- Elementary matrices
- Log - exp - power
- Floating point
- Radix conversions
- Matrix manipulation
- Matrix operations
- Search and sort
- Set operations
- Signal processing
- Symbolic
- Trigonometry
- and
- &
- cat
- cell2mat
- cellstr
- iscolumn
- isempty
- isequal
- ismatrix
- isrow
- isscalar
- issquare
- isvector
- lstsize
- modulo
- ndims
- nthroot
- num2cell
- or
- |
- sign
- size
- unwrap
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
or
logical OR of the elements of an array
Calling Sequence
or(A), or(A,'*') or(A,'r'), or(A,1) or(A,'c'), or(A,2)
Description
or(A)
gives the or
of the
elements of the boolean matrix A
.
or(A)
is true (%t
) if at least one
entry of A
is %t
.
or([])
returns %F
.
y=or(A,'r')
(or, equivalently,
y=or(A,1)
) is the row-wise OR. It returns in each entry
of the row vector y
the OR of the rows of
x
(The OR is performed on the row index :
y(j)= or(A(i,j),i=1,m)
).
y=or(A,'c')
(or, equivalently,
y=or(A,2)
) is the column-wise OR. It returns in each
entry of the column vector y
the OR of the columns of
x
(The OR is performed on the column index:
y(i)= or(A(i,j),j=1,n)
)).
Examples
or([%t %t %f])
See Also
- or operator (|) — logical OR operator
- and — logical AND of the elements of an array
- not — (~) logical not
- find — find indices of boolean vector or matrix true elements
Report an issue | ||
<< num2cell | Elementary Functions | | >> |