You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function uniquely determines the angle (-180,180] in degree or(-pi, pi] in radian from sine and cosine values.
Usage:
theta=angleCalc(S,C,out_mode)
S: sin value of the angle
C: cos value of the angle
out_mode: 'deg' OR 'rad'
the default output mode is in degree
Example:
theta= angleCalc(sin(-2*pi/3),cos(-2*pi/3))
theta = -120;
theta= angleCalc(sin(2*pi/3),cos(2*pi/3),'rad')
theta= 2.0944 [rad]
Cite As
Disi A (2026). 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 .
General Information
- Version 1.0.0.0 (1.29 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
