Type representing relations
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::Relation, relational expression
can be identified.
Expressions with the operations
be interpreted as expressions with
exchanging the operands (see Example 2).
This type does not represent a property.
x > 3 is a relation, while
testtype(x > 3, Type::Relation), testtype(TRUE, Type::Relation)
MuPAD always interprets expressions with the operations
the operands exchanged:
x > 3; prog::exprtree(x > 3):
_less | +-- 3 | `-- x
The operator is not
<, and the operands have been swapped:
op(x > 3, 0..2)
Any MuPAD object