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

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 23 Mär. 2015

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 23 Mär. 2015

Kommentiert:

am 23 Mär. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by