all
Check if all elements of an array are true or nonzero.
y=all(x)
Inputs
x An array of numeric or boolean values.
Outputs
y True if all the elements of the input are true or nonzero, and false otherwise.


Example
>>a=[1 2 0 3 4; 7 6 2 3 5]
>>all(a)
         0