y=any(x)| Inputs | |
x |
An array of numeric or boolean values. |
| Outputs | |
y |
True if any the element of the input is true or nonzero, and false otherwise. |
>>a=[1 2 0 3 4; 7 6 2 3 5]
>>any(a)
1
>>b=[1 2 0 3 4; 7 6 2 3 5]*0
>>b
0 0 0 0 0
0 0 0 0 0
>>any(b)
0