Documentation

This is machine translation

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

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

cosd

Cosine of argument in degrees

Syntax

Description

example

Y = cosd(X) returns the cosine of the elements of X, which are expressed in degrees.

Examples

collapse all

cosd(90)
ans =

     0

cos(pi/2)
ans =

   6.1232e-17

Create an array of three complex angles and compute the cosine.

z = [180+i 45+2i 10+3i];
y = cosd(z)
y =

  -1.0002 + 0.0000i   0.7075 - 0.0247i   0.9862 - 0.0091i

Input Arguments

collapse all

Angle in degrees, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The cosd operation is element-wise when X is nonscalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

Cosine of angle, 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?