Navigation: Language Reference > Functions > Trigonometric >
Y = cos(X);
Returns the cosine of the elements of X.
b = ramp(2.5);
a = cos(b);
X = [ramp(0);ramp(1)];
Y and X must have the same size.