(Simple) Complex Numbers
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.
DOM_COMPLEX is the type of complex numbers
with integer, rational, or floating-point components.
Complex numbers of type
two operands, their real and imaginary part. These are objects of
Complex numbers with other components (such as )
are not of domain type
Calling a complex number as a function returns that number unchanged. The arguments of the call are not evaluated.
Every object of type
DOM_COMPLEX has two
operands, the real and the imaginary part.
Objects of type
DOM_COMPLEX are essentially
written as expressions in rectangular form. The imaginary unit is
displayed as I.
Complex numbers can be constructed by typing in the corresponding
expression, such as
3+4*I. The keyword for typing
the imaginary unit I is
capital letter i).