Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

atand

Inverse tangent in degrees

Syntax

Description

example

Y = atand(X) returns the inverse tangent (tan-1) of the elements of X in degrees. The function's domain and range include complex values. For real elements of X in the domain [-Inf, Inf], atand returns values in the range [-90, 90]. For complex values of X, atand returns complex values.

Examples

collapse all

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

  -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, or N-D array. The atand operation is element-wise when X is non-scalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

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

More About

collapse all

Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

See Also

| | |

Introduced before R2006a

Was this topic helpful?