I need a little help calculating/converting coterminal angles to show only the positive angles
I’m using octave/matlab.
Example: 60,-300, and 780 degrees are all coterminal angles (they share a terminal side)
Coterminal example
What I’m trying to get is when I do a mod(-370,-360) the answer is -10 which is correct but I’m trying to have the answer come out as a positive answer/angle whether the number entered is negative or positive so the answer I would want is 350. Any ideas?
Thanks
Why not use a positive divisor:
mod(-370, 360)?