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

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 23 Mar 2015
Let your input angle ang :
ang = 0:30:500;
ang360 = rem(ang,360);

Plus de réponses (0)

Catégories

En savoir plus sur Simulink 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!

Translated by