cos
Cosine of argument in radians
Syntax
Y = cos(X)
Description
returns the cosine for each element ofY
= cos(X
)X
. Thecos
function operates element-wise on arrays. The function accepts both real and complex inputs. For purely real values or imaginary values ofX
,cos
returns real values in the interval [-1 ,1]. For complex values ofX
,cos
returns complex values. All angles are in radians.
Examples
Input Arguments
Output Arguments
More About
Extended Capabilities
Introduced before R2006a
Was this topic helpful?