Y = cos(X) returns
the cosine for each element of X. The cos
function operates element-wise on arrays. The function accepts both real and complex
inputs.
For real values of X, cos(X)
returns real values in the interval [-1, 1].
For complex values of X,
cos(X) returns complex values.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.