isboolean

Determine whether input is Boolean

Syntax

y = isboolean(a)
y = isboolean(T)

Description

y = isboolean(a) returns 1 when the DataType property of fi object a is boolean, and 0 otherwise.

y = isboolean(T) returns 1 when the DataType property of numerictype object T is boolean, and 0 otherwise.

Was this topic helpful?