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

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 3월 23일

1 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2015년 3월 23일

댓글:

2015년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by