Hello,
I need to limit the first 3 positions of the state vector to 0 - 360 degree. If the value is higher or lower it should start on the opposite direction(361=1 and -1=359). If I use the ltiview (step) the value goes up to infinite.
Knows somebody a way to limit the state vector?

답변 (2개)

Jos (10584)
Jos (10584) 2013년 12월 19일

0 개 추천

help mod
V = [0 1 359 361 -1]
V = mod(V,360)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

질문:

2013년 12월 19일

답변:

2013년 12월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by