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

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 23 de Mzo. de 2015
Let your input angle ang :
ang = 0:30:500;
ang360 = rem(ang,360);

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Mzo. de 2015

Comentada:

el 23 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by