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