Determines whether all input elements are non-zero.
status = all(a)
status = all(a, dim)
Scalar or array of any dimension.
Dimension along which MathScript determines whether all input elements are non-zero. dim is a positive integer. For example, if a is a matrix and dim has the value one, the function works column-wise and returns a row vector containing one Boolean element for each column of a. If dim is not specified, the function uses the non-singleton dimension of a.
0 (False), if a contains an element equal to zero. 1 (True), if a does not contain an element equal to zero. Status is a Boolean.
A = [-2, -1, 1, 2]; STATUS = all(A)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices