Contents | Previous | Next | Subchapters |
Syntax |
y = any( x) |
y = any( x, d) | |
See Also | O-Matrix mode , all |
any(
x,
d)
If the argument d is present,
it must be an integer, real or double-precision scalar equal to
one or two.
If d is one,
y is a logical row vector with the same column
dimension as x.
The j-th element of y is true,
if any of the elements in the j-th column of x are true.
If d is two,
y is a logical column vector with the same row
dimension as x.
The i-th element of y is true,
if any of the elements in the i-th row of x are true.
x = [ 0 2 0; 4 5 0 ]
any(x)
O-Matrix will respond
[ T , T , F ]