Documentation Center

  • Trial Software
  • Product Updates
라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

atan2d

Four-quadrant inverse tangent in degrees

Syntax

Description

example

D = atan2d(Y,X) returns the four-quadrant inverse tangent of points specified in the x-y plane. The result, D, is expressed in degrees.

Examples

expand all

Inverse Tangent of Four Points on the Unit Circle

x = [1 0 -1 0];
y = [0 1 0 -1];
d = atan2d(y,x)
d =

     0    90   180   -90

Input Arguments

expand all

Yy-coordinatesscalar value | vector | matrix | N-D array

y-coordinates, specified as a real-valued scalar, vector, matrix, or N-D array.

Data Types: single | double

Xx-coordinatesscalar value | vector | matrix | N-D array

x-coordinates, specified as a real-valued scalar, vector, matrix, or N-D array.

Data Types: single | double

Output Arguments

expand all

D — Angles in degreesscalar value | vector | matrix | N-D array

Angles in degrees, returned as a scalar, vector, matrix, or N-D array. These angles correspond to the points defined by X and Y, and they lie in the closed interval [–180,180].

More About

expand all

Tips

  • Use atand(Y/X) for the inverse tangent with results on the interval [–90, 90].

See Also

| | | |

Was this topic helpful?