Main Content

acotd

Inverse cotangent in degrees

Description

Y = acotd(X) returns the inverse cotangent (cot-1) of the elements of X in degrees. The function accepts both real and complex inputs.

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

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

example

Examples

collapse all

x = [0 20 Inf];
y = acotd(x)
y = 1×3

   90.0000    2.8624         0

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

acotd(1+i)
ans = 
31.7175 -23.0535i

Input Arguments

collapse all

Cotangent of angle, specified as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable. The acotd 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

| |