1
and Scilab Group Scilab Function and
7
b=and(A,'r'), b=and(A,1)
8
b=and(A,'c'), b=and(A,2)
11
and(A) is the logical AND of elements of the boolean matrix A. and(A)
12
returns %T ("true") iff all entries of A are %T.
14
y=and(A,'r') (or, equivalently, y=and(A,1)) is the rowwise and. It
15
returns in each entry of the row vector y the and of the rows of x (The
16
and is performed on the row index : y(j)= and(A(i,j),i=1,m)).
18
y=and(A,'c') (or, equivalently, y=and(A,2)) is the columnwise and. It
19
returns in each entry of the column vector y the and of the columns of x
20
(The and is performed on the column index: y(i)= and(A(i,j),j=1,n))).
22
A&B gives the element-wise logical and of the booleans matrices A and
23
B .A and B must be matrices with the same dimensions or one from them
24
must be a single boolean.