Four-quadrant inverse tangent in degrees
D = atan2d(
returns
the four-quadrant
inverse tangent (tan-1) of Y
,X
)Y
and X
,
which must be real. The result, D
, is expressed
in degrees.
Y
— y-coordinatesy-coordinates, specified as a scalar, vector,
matrix, or multidimensional array. Inputs Y
and X
must
either be the same size or have sizes that are compatible (for example, Y
is
an M
-by-N
matrix and X
is
a scalar or 1
-by-N
row vector).
For more information, see Compatible Array Sizes for Basic Operations.
Data Types: single
| double
X
— x-coordinatesx-coordinates, specified as a scalar, vector,
matrix, or multidimensional array. Inputs Y
and X
must
either be the same size or have sizes that are compatible (for example, Y
is
an M
-by-N
matrix and X
is
a scalar or 1
-by-N
row vector).
For more information, see Compatible Array Sizes for Basic Operations.
Data Types: single
| double
This function fully supports tall arrays. For more information, see Tall Arrays.
Usage notes and limitations:
If you use atan2d
with single type and double
type operands, the generated code might not produce the same result as
MATLAB®. See Binary Element-Wise Operations with Single and Double Operands (MATLAB Coder).
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).
You have a modified version of this example. Do you want to open this example with your edits?