This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Properties and Assumptions

Restrict possible values of variables or expressions

Note

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.

Concepts

Properties

Use only in the MuPAD Notebook Interface.

When to Use Assumptions

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