cos(m)

The cos(m) function returns the cosine of each element of m.

Example

OML

>> m=[1 -2;-3 4]

1 -2

-3 4

>> cos (m)

0.540302 -0.416147

-0.989992 -0.653644