any
any of the elements of a matrix satisfy some condition.
Syntax
R = any(M)
R = any(M, dim)
R = any(M, 'all')
Input argument
M - a matrix.
dim - a integer value: dimension along it works.
'all' - tests over all elements of M.
Output argument
R - a logical matrix.
Description
any returns true if any of the elements of a matrix satisfy some condition.
Example
See also
all.
History
Version
Description
1.0.0
initial version
1.6.0
manages input argument 'all'
Author
anyan CORNET
Last updated