how to do arccos in matlab?
Y = acos(X) returns the inverse cosine (arccosine) for each element of X . For real elements of X in the domain , acos(X) is real and in the range . For real elements of X outside the domain , acos(X) is complex. The acos function operates element-wise on arrays.