How to find angles, which lies between -π and -2π.Because matlab returns only values between ±π using atan or atand function.
Afficher commentaires plus anciens
Because matlab returns only values between ±π using 'atan' or 'atand 'functions.i want to get an angle between -π and -2π. Are there any solution to do that using functions? i'm finding a solution without using a absolute value(abs function)
thank you
2 commentaires
Walter Roberson
le 2 Juin 2015
Yes, use unwrap(). It will get rid of discontinuities.
Réponses (2)
Roger Stafford
le 2 Juin 2015
Do this to your angle, 'a':
a = mod(a,pi)-2*pi;
It will then lie between -2*pi and -pi.
[Note: atan gives angles between -pi/2 and +pi/2, not -pi and +pi.]
1 commentaire
gfgf99
le 2 Juin 2015
Walter Roberson
le 2 Juin 2015
0 votes
Catégories
En savoir plus sur Video games dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!