FUNCTION REFERENCE
cos
Cosine of an angle in radians.
Cosine of an angle in radians.
Syntax
cos(X)Applies cosine to each element; complex input is supported.
Example
cos(0) % 1Differences from MATLAB: double 2-D arrays only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.