and
Element-wise logical AND (function form of &).
Syntax
Section titled “Syntax”C = and(A, B)Description
Section titled “Description”Returns A & B applied elementwise. Non-zero values are treated as true. Use sc_eq-style short-circuit forms (registered as &&-equivalents) when only the truthiness of the result matters.
Example
Section titled “Example”and([1 0 1], [1 1 0]) % [1 0 0]