islogical
Check if all the elements of an array are boolean.
(u)=islogical(a)
Inputs
a Any array.
Outputs
u true (1) if all the elements of the input are boolean, and false (0) otherwise.


Example
>>a=rand(4,4)
>>islogical(a)
         0
>>islogical(a>0)
         1