any:
-
- any=1,有一个元素是1,即可;
- any=0,全部元素为0,即可。
all:
-
- all=1,全部元素是1,即可;
- all=0,有一个元素是0,即可。
ALL True if all elements of a vector are nonzero.
ANY True if any element of a vector is a nonzero number or is logical 1 (TRUE). ANY ignores entries that are NaN (Not a Number).