cosd

Returns the cosine for each element of the argument (in degrees).

Syntax

R = cosd(a)

Inputs

a
The angle in degrees.
Dimension: scalar | vector | matrix

Outputs

R
scalar | vector | matrix

Example

Scalar input:
R = cosd(60)
R = 0.5
Matrix input:
R = cosd([60, -45; -30, 90])
R = [Matrix] 2 x 2
  0.50000  0.70711
  0.86603  0.00000