atan2d

Returns the four quadrant inverse tangent (in radians) for each element pair of the arguments.

Syntax

R = atan2d(y,x)

Inputs

y
The opposite leg of a triangle.
Dimension: scalar | vector | matrix
x
The adjacent leg of a triangle.
Dimension: scalar | vector | matrix

Outputs

R
The angle result (in degrees).

Examples

Scalar inputs:
R = atan2d(1,-sqrt(3))
R = 150
Matrix inputs:
R = atan2d([2,-3;4,-5],[-3,4;5,-6])
R = [Matrix] 2 x 2
  146.30993   -36.86990
  38.65981  -140.19443