Properties and Assumptions

Restrict possible values of variables or expressions


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 Functions

assumeSet permanent assumption
assumeAlsoAdd permanent assumption
assumingSet temporary assumption
assumingAlsoAdd temporary assumption
getpropQuery properties of expressions
isCheck a mathematical property of an expression
iszeroGeneric zero test
property::dependsDependence table with all properties of an expression
property::haspropDoes an object have properties?
property::showpropsWhat assumptions are made?
unassumeDelete the properties of an identifier

Examples and How To

Use Permanent Assumptions

Permanent assumptions work best for the mathematical properties that hold true throughout your computations.

Use Temporary Assumptions

Use temporary assumptions to specify that an object holds mathematical properties for a particular calculation.



Use only in the MuPAD Notebook Interface.

When to Use Assumptions

By default, MuPAD assumes that all symbolic parameters and variables represent complex numbers.