Matlab if statements in physics
Mostrar comentarios más antiguos
What does the condition mean in Matlab, where x and y are the displacement that measures from [-1,1]
if (abs(x)>=1)
x=sign(x);
end
if (abs(y)>=1)
y=sign(y);
end
2 comentarios
Walter Roberson
el 18 de Oct. de 2018
The code is checking to see if the values are out of range and if so moving them to the boundary.
Momo
el 19 de Oct. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Elementary Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!