[TOC]

and

Element-wise logical AND operation

Usage

and(A, B)

Example

Input
a = randi(3,3,4) - 2
b = randi(3,3,4) - 2
and(a,b)
Output
a =
-1.000   1.000  -1.000  -1.000
-1.000   1.000   0.000   0.000
 0.000   1.000   0.000   0.000

b =
-1.000   0.000   0.000   1.000
 1.000   0.000  -1.000   0.000
 0.000   0.000  -1.000   1.000

ans =
1  0  0  1
1  0  0  0
0  0  0  0