Main Content
boolean
Convert numeric value to Boolean value
Syntax
Description
converts
the numeric expression tf
= boolean(X
)X
into a Boolean value. If the expression
evaluates to zero, boolean
returns logical 0
(false
). Otherwise, boolean
returns logical
1
(true
).
Note
The operator boolean
is supported only in Stateflow® charts. In MATLAB®, use logical
.
Examples
Input Arguments
Version History
Introduced before R2006a