Real component, specified as a scalar, vector, matrix, or multidimensional
array.

The size of a must match the size of b,
unless one is a scalar. If either a or b is
a scalar, MATLAB^{®} expands the scalar to match the size of the
other input.

a and b must be the same
data type with the following exceptions:

single can combine with double.

scalar double can combine with
an integer data type.

Imaginary component, specified as a scalar, vector, matrix,
or multidimensional array.

The size of b must match the size of a,
unless one is a scalar. If either a or b is
a scalar, MATLAB expands the scalar to match the size of the
other input.

a and b must be the same
data type with the following exceptions:

single can combine with double.

scalar double can combine with
an integer data type.

If b contains only zeros, then z is
complex and the value of all its imaginary components is 0.
In contrast, the addition a + 0i returns a strictly
real result.