Cosine of argument in degrees
Y = cosd(X)
ans = 0
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
X— Angle in degrees
Angle in degrees, specified as a real-valued or complex-valued
scalar, vector, matrix, or N-D array. The
is element-wise when
X is nonscalar.
Complex Number Support: Yes
Y— Cosine of angle
Cosine of angle, returned as a real-valued or complex-valued
scalar, vector, matrix, or N-D array of the same size as
This function fully supports tall arrays. For more information, see Tall Arrays.