This function uniquely determines the angle (-180,180] in degree or（-pi, pi] in radian from sine and cosine values.
S: sin value of the angle
C: cos value of the angle
out_mode: 'deg' OR 'rad'
the default output mode is in degree
theta = -120;
theta= 2.0944 [rad]
Disi A (2020). Angle calculator from sin and cos values (https://www.mathworks.com/matlabcentral/fileexchange/42365-angle-calculator-from-sin-and-cos-values), MATLAB Central File Exchange. Retrieved .
There are already vectorized built-in functions for this, atan2 and atan2d. Your submission is not vectorized and is not as capable as the built-in functions. I would suggest removing your submission from the FEX.