This function checks whether a numeric array is binary, with only one unique nonzero value, or not.
binary(x)A logical value indicating whether the array is binary or not. Binary in this case means that the array contains only one unique nonzero value, which is stored with the return value in an attribute.