Limit the state vector
Mostrar comentarios más antiguos
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?
Respuestas (2)
Azzi Abdelmalek
el 19 de Dic. de 2013
mod(x,360)
Jos (10584)
el 19 de Dic. de 2013
help mod
V = [0 1 359 361 -1]
V = mod(V,360)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!