a — Real component scalar | vector | matrix | multidimensional array

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.

This function fully supports tall arrays. For
more information, see Tall Arrays.

Tips

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.