Section: Mathematical Functions
cos
). The syntax for its use is
y = cosd(x)
sqrt(2)/2
--> cosd(45) ans = <double> - size: [1 1] 0.7071067811865476
and the cosine of 60
degrees should be 0.5:
--> cosd(60) ans = <double> - size: [1 1] 0.5000000000000001