Angle calculator from sin and cos values

Versione 1.0.0.0 (1,29 KB) da Disi A
This function uniquely determines the angle (-180,180] in degree or(-pi, pi] in radian
509 download
Aggiornato 26 giu 2013

Visualizza la licenza

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]

Cita come

Disi A (2024). 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. Recuperato .

Compatibilità della release di MATLAB
Creato con R2012b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Propagation and Channel Models in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0