Main Content

atand

Inverse tangent in degrees

Description

Y = atand(X) returns the inverse tangent (tan-1) of the elements of X in degrees. The function accepts both real and complex inputs.

  • For real values of X, atand(X) returns values in the interval [-90, 90].

  • For complex values of X, atand(X) returns complex values.

example

Examples

collapse all

x = [-50 -20 0 20 50];
y = atand(x)
y = 1×5

  -88.8542  -87.1376         0   87.1376   88.8542

The atand operation is element-wise when you pass a vector, matrix, or N-D array.

atand(10+i)
ans = 
84.3450 + 0.5618i

Input Arguments

collapse all

Tangent of angle, specified as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable. The atand operation is element-wise when X is non-scalar.

Data Types: single | double | table | timetable
Complex Number Support: Yes

Output Arguments

collapse all

Angle in degrees, returned as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable of the same size as X.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced before R2006a

expand all

See Also

| | |