Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

DOM_BOOL

Boolean constants

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.

Description

DOM_BOOL is the data type of the truth values TRUE, FALSE, and UNKNOWN.

MuPAD® uses a three-valued logic system, with these values (constants) TRUE, FALSE, and UNKNOWN.

Function Calls

Using a Boolean constant as a function returns that constant unchanged. The arguments of the call are not evaluated.

Operations

The most important operations on Boolean values are the logical operators and, not, or, xor, ==>, <=>, and using them in conditions of if or piecewise.

Operands

Boolean constants are atomic.

Output

TRUE is displayed as TRUE, FALSE is displayed as FALSE, and UNKNOWN is shown as UNKNOWN.

Element Creation

The three constants can be types in as shown above. Additionally, many MuPAD functions returns Boolean values, the most generic/prominent two being bool and is.

See Also

MuPAD Functions

Was this topic helpful?