Scilab 5.3.3
- Scilab help
- Elementary Functions
- Bitwise operations
- Complex
- Discrete mathematics
- Elementary matrices
- Floating point
- Integer representation
- Matrix manipulation
- Matrix operations
- Search and sort
- Set operations
- Signal processing
- Symbolic
- Trigonometry
- abs
- amell
- and
- &
- cat
- cell2mat
- cellstr
- char
- delip
- diff
- exp
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isvector
- log
- log10
- log1p
- log2
- logm
- lstsize
- max
- min
- modulo
- ndims
- norm
- or
- |
- pertrans
- sign
- signm
- size
- sqrt
- sqrtm
- squarewave
- toeplitz
- typeof
Scilab help >> Elementary Functions > or
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) iff at least one
entry of A is %t.
or([]) returns %F.
y=or(A,'r') (or, equivalently,
y=or(A,1)) is the rowwise 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 columnwise 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
| << norm | Elementary Functions | | >> |