Logical Operations

Logical and, or, xor, not, and other operations


MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Syntax

andLogical “and”
&&“short circuit and” of Boolean expressions
orLogical “or”
||“short circuit or” of Boolean expressions
notLogical negation
xorLogical exclusive-or
==>Logical implication
<=>Logical equivalence