y-coordinates, specified as a scalar, vector,
matrix, or multidimensional array. Inputs Y and X must
be the same size unless one is a scalar. A scalar value expands to
be the same size as the other array.

x-coordinates, specified as a scalar, vector,
matrix, or multidimensional array. Inputs Y and X must
be the same size unless one is a scalar. A scalar value expands to
be the same size as the other array.

The four-quadrant inverse tangent, atan2d(Y,X),
returns values in the closed interval [-180,180] based
on the values of Y and X as
shown in the graphic.

In contrast, atand(Y/X) returns results that
are limited to the interval [-90,90], shown on
the right side of the diagram.