Converting 0-inf degrees into 0-360

Hi!
I'm looking for the most elegant way of returning a continously rotating angle (0 - inf) degrees into cycles of 0 to 360 degrees.
Any tips? :) Thanks

 Accepted Answer

Let your input angle ang :
ang = 0:30:500;
ang360 = rem(ang,360);

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 23 Mar 2015

Commented:

on 23 Mar 2015

Community Treasure Hunt

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

Start Hunting!