Main Content
logical
Convert numeric values to logicals
Syntax
Description
Examples
Input Arguments
Tips
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 likeany
,all
,isnan
,isinf
, andisfinite
.
Extended Capabilities
Version History
Introduced before R2006a