MathGenie
any
Determine if any array elements are nonzero
Syntax and Description
any(A)  tests along the first array dimension of A whose size does not equal 1, and determines if any element is a nonzero number or logical 1 (true). In practice, any is a natural extension of the logical OR operator.

any(A,dim)  tests elements along dimension dim. The dim input is a positive integer scalar. 