Type representing boolean expressions
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
Type::Boolean represents logical formulas.
Boolean expressions are all of the following objects: the Boolean
identifiers; equations and inqualities; expressions with operator
_equiv if each operand is a Boolean expression;
or results returned by
Identifiers and boolean constants are Boolean expressions:
testtype(TRUE, Type::Boolean), testtype(a, Type::Boolean)
In order that an expression be Boolean, it is not sufficient that only its operator is a logical operator; also its operands must be Boolean expressions.
testtype(a >= 3 and b, Type::Boolean); testtype(a+b and c, Type::Boolean)
Any MuPAD® object