Convert numeric values to logicals
Most arithmetic operations involving logical arrays return double values. For example, adding zero to a logical array returns a double array.
Logical arrays also are created by the relational
operators (==
,<
,>
,~
,
etc.) and functions like any
, all
, isnan
, isinf
,
and isfinite
.