cos

Navigation:  Language Reference > Functions > Trigonometric >

cos

Previous pageReturn to chapter overviewNext page

Syntax

Y = cos(X);

Description

Returns the cosine of the elements of X.

Examples

b = ramp(2.5);

a = cos(b);

X = [ramp(0);ramp(1)];

Y = cos(X);

Limitations

Y and X must have the same size.

 

Cos