R = any(M)
R = any(M, dim)
R = any(M, 'all')
| Parameter | Description |
|---|---|
| M | a matrix. |
| dim | a integer value: dimension along it works. |
| 'all' | tests over all elements of M. |
| Parameter | Description |
|---|---|
| R | a logical matrix. |
any returns true if any of the elements of a matrix satisfy some condition.
any([33, 22; 11, 0])
any([33, 22; 11, 0], 2)
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 1.6.0 | manages input argument 'all' |